public abstract class Server extends Pluggable implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.support.BeanDefinitionRegistry, org.springframework.beans.factory.ListableBeanFactory
Constants.FedoraHome| Modifier and Type | Field and Description |
|---|---|
static String |
BIN_DIR
The directory where server executables are stored, relative to home.
|
static String |
BUILD_DATE
The build date of this release.
|
static String |
CONFIG_ATTRIBUTE_CLASS
The configuration file's class-specifying attribute for server and module
elements.
|
static String |
CONFIG_ATTRIBUTE_ID
The configuration file datastore element's id attribute.
|
static String |
CONFIG_ATTRIBUTE_NAME
The configuration file param element's name attribute.
|
static String |
CONFIG_ATTRIBUTE_ROLE
The configuration file's role-specifying attribute for module elements.
|
static String |
CONFIG_ATTRIBUTE_VALUE
The configuration file param element's value attribute.
|
static String |
CONFIG_DIR
The directory where server configuration is stored, relative to home.
|
static String |
CONFIG_ELEMENT_COMMENT
The configuration file comment element's name.
|
static String |
CONFIG_ELEMENT_DATASTORE
The configuration file datastore element's name.
|
static String |
CONFIG_ELEMENT_MODULE
The configuration file module element's name.
|
static String |
CONFIG_ELEMENT_PARAM
The configuration file param element's name.
|
static String |
CONFIG_ELEMENT_ROOT
The configuration file root element's name.
|
static String |
CONFIG_FILE
The configuration filename.
|
static String |
CONFIG_NAMESPACE
The configuration file elements' namespace.
|
static String |
DEFAULT_SERVER_CLASS
The name of the default Server implementation class
|
static String |
EXTENSION_DIR
The directory where server extensions are stored, relative to home.
|
static boolean |
GLOBAL_CHOICE |
static String |
HOME_PROPERTY
The name of the property that tells the server where it's based.
|
static String |
INIT_CONFIG_CONFIG_EXAMININGELEMENT
Tells which config element is being looked at in order to load its
parameters into memory.
|
static String |
INIT_CONFIG_CONFIG_PARAMETERIS
Tells the name and value of a parameter loaded from the config file.
|
static String |
INIT_CONFIG_SEVERE_BADELEMENT
Indicates that an invalid element was found in the configuration xml.
|
static String |
INIT_CONFIG_SEVERE_BADNAMESPACE
Indicates that the config file's element's namespace does not match
{config.namespace}.
|
static String |
INIT_CONFIG_SEVERE_BADROOTELEMENT
Indicates that the config file has a mis-named root element.
|
static String |
INIT_CONFIG_SEVERE_INCOMPLETEPARAM
Indicates that a parameter element in the config file is missing a
required element.
|
static String |
INIT_CONFIG_SEVERE_MALFORMEDXML
Indicates that the config file has malformed XML.
|
static String |
INIT_CONFIG_SEVERE_NOCLASSGIVEN
Indicates that a module element in the server configuration did not
specify an implementing class, but should.
|
static String |
INIT_CONFIG_SEVERE_NOIDGIVEN
Indicates that a CONFIG_ELEMENT_DATASTORE didn't specify the required
CONFIG_ATTRIBUTE_ID.
|
static String |
INIT_CONFIG_SEVERE_NOROLEGIVEN
Indicates that a module element in the server configuration did not
specify a role, but should.
|
static String |
INIT_CONFIG_SEVERE_REASSIGNMENT
Indicates that an attribute of an element was assigned the same value as
a previously specified element's attribute, and that this constitutes a
disallowed reassignment.
|
static String |
INIT_CONFIG_SEVERE_UNREADABLE
Indicates that the config file could not be read.
|
static String |
INIT_LOG_WARNING_CANTWRITESTARTUPLOG
Indicates that the startup log could not be written to its usual place
for some reason, and that we're falling back to stderr.
|
static String |
INIT_MODULE_SEVERE_BADARGS
Indicates that the module class constructor was invoked improperly due to
programmer error.
|
static String |
INIT_MODULE_SEVERE_CLASSNOTFOUND
Indicates that the module class could not be found.
|
static String |
INIT_MODULE_SEVERE_ILLEGALACCESS
Indicates that the module class couldn't be accessed due to security
misconfiguration.
|
static String |
INIT_MODULE_SEVERE_ISABSTRACT
Indicates that the module class was abstract, but shouldn't be.
|
static String |
INIT_MODULE_SEVERE_MISSINGCONSTRUCTOR
Indicates that the module class doesn't have a constructor matching
Module(Map, Server, String), but needs one.
|
static String |
INIT_MODULE_SEVERE_UNFULFILLEDROLE |
static String |
INIT_SERVER_SEVERE_BADARGS
Indicates that the server class constructor was invoked improperly due to
programmer error.
|
static String |
INIT_SERVER_SEVERE_CLASSNOTFOUND
Indicates that the server class could not be found.
|
static String |
INIT_SERVER_SEVERE_ILLEGALACCESS
Indicates that the server class couldn't be accessed due to security
misconfiguration.
|
static String |
INIT_SERVER_SEVERE_ISABSTRACT
Indicates that the server class was abstract, but shouldn't be.
|
static String |
INIT_SERVER_SEVERE_MISSINGCONSTRUCTOR
Indicates that the server class doesn't have a constructor matching
Server(NodeList, File), but needs one.
|
static String |
INIT_SERVER_SEVERE_UNFULFILLEDROLE
Indicates that a module role required to be fulfilled by this server was
not fulfilled because the configuration did not specify a module with
that role.
|
static String |
INIT_XMLPARSER_SEVERE_MISSING
Indicates that an XML parser could not be found.
|
static String |
LOG_STARTUP_FILE
The startup log file.
|
protected Set<String> |
m_loadedModuleRoles
Deprecated.
|
protected Map<String,Module> |
m_loadedModules
Deprecated.
|
static String |
MODULE_CONSTRUCTOR_PARAM1_CLASS
The required module constructor's first parameter's class.
|
static String |
MODULE_CONSTRUCTOR_PARAM2_CLASS
The required module constructor's second parameter's class.
|
static String |
MODULE_CONSTRUCTOR_PARAM3_CLASS
The required module constructor's third parameter's class.
|
static String |
NAMESPACE_PREFIX
The prefix to all fedora-defined namespaces for this version.
|
protected static Map<File,Server> |
s_instances
Holds an instance of a
Server for each distinct
File given as a parameter to getInstance(...) |
static String |
SERVER_CONSTRUCTOR_PARAM1_CLASS
The required server constructor's first parameter's class.
|
static String |
SERVER_CONSTRUCTOR_PARAM2_CLASS
The required server constructor's second parameter's class.
|
static String |
SPRING_DIR
The directory where Spring configurations are stored, relative to CONFIG_DIR.
|
static String |
STORAGE_FORMAT
The internal XML storage format for digital objects
|
static boolean |
USE_CACHE |
static boolean |
USE_DEFINITIVE_STORE |
static String |
VERSION
The version of this release.
|
ACCESS, ACTION, API, ATOM_APIM1_0, ATOM_ZIP1_1, ATOM1_1, AUDIT, AUDIT1_0, BATCH_MODIFY, BATCH_MODIFY1_1, BE_SECURITY, BE_SECURITY1_0, BINDING_SPEC, DATASTREAM, DC, DISSEMINATOR, DS_COMPOSITE_MODEL, DS_COMPOSITE_MODEL1_0, DS_INPUT_SPEC1_0, DS_INPUT_SPEC1_1, ENVIRONMENT, FCFG, FEDORA, FEDORA_APP_CONTEXT_NAME, FEDORA_DEFAULT_APP_CONTEXT, FEDORA_HOME, FEDORA_REPOSITORY_PID, FOXML, FOXML1_0, FOXML1_0_LEGACY, FOXML1_1, HTTP_REQUEST, MANAGEMENT, METHOD_MAP, METS, METS_EXT, METS_EXT1_0, METS_EXT1_0_LEGACY, METS_EXT1_1, MODEL, MULGARA, OAI_DC, OAI_DC2_0, OAI_FRIENDS, OAI_FRIENDS2_0, OAI_IDENTIFIER, OAI_IDENTIFIER2_0, OAI_PMH, OAI_PMH2_0, OAI_PROV, OAI_PROV2_0, OBJ_DATASTREAMS1_0, OBJ_HISTORY1_0, OBJ_ITEMS1_0, OBJ_METHODS1_0, OBJ_PROFILE1_0, OBJ_VALIDATION1_0, OBJECT, OLD_XLINK, PID_LIST1_0, RDF, RDF_XSD, RECOVERY, RELS_EXT, RELS_EXT1_0, RELS_INT1_0, REPO_DESC1_0, RESOURCE, SDEF, SDEF_METHOD_MAP1_0, SDEP, SDEP_METHOD_MAP1_0, SDEP_METHOD_MAP1_1, SERVICE_PROFILE, SOAP, SOAP_ENC, SUBJECT, TYPES, VIEW, WSDL, WSDL_HTTP, WSDL_MIME, XACML_POLICY, XACML_POLICY1_0, XACML1, XACML1_ACTION, XACML1_POLICY, XACML1_RESOURCE, XACML1_SUBJECT, XACML2_POLICY_SCHEMA, XLINK, XML_XSD, XMLNS, XSI| Modifier | Constructor and Description |
|---|---|
protected |
Server(Element rootConfigElement,
File homeDir)
Initializes the Server based on configuration.
|
protected |
Server(File homeDir)
This constructor is a compatibility bridge to allow
the getInstance factory method to be used by Spring contexts
|
protected |
Server(Map<String,String> params,
File homeDir)
Initializes the Server from a Map of Strings (as per Module)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsBean(String name) |
boolean |
containsBeanDefinition(String beanName) |
protected static org.springframework.beans.factory.support.GenericBeanDefinition |
createDatastoreConfigurationBeanDefinition(String id) |
protected static org.springframework.beans.factory.support.GenericBeanDefinition |
createModuleBeanDefinition(String className,
Map<String,String> params,
String role)
Generates Spring Bean definitions for Fedora Modules.
|
protected static org.springframework.beans.factory.support.GenericBeanDefinition |
createModuleConfigurationBeanDefinition(String role) |
Iterator<String> |
datastoreConfigIds() |
void |
finalize()
Calls
shutdown() when finalization occurs. |
<T extends Annotation> |
findAnnotationOnBean(String beanName,
Class<T> annotationType) |
String[] |
getAliases(String name) |
<T> T |
getBean(Class<T> requiredType) |
Object |
getBean(String name) |
<T> T |
getBean(String name,
Class<T> type) |
Object |
getBean(String name,
Object... args) |
org.springframework.beans.factory.config.BeanDefinition |
getBeanDefinition(String beanName) |
int |
getBeanDefinitionCount() |
String[] |
getBeanDefinitionNames() |
String[] |
getBeanNamesForType(Class type) |
String[] |
getBeanNamesForType(Class type,
boolean includeNonSingletons,
boolean allowEagerInit) |
<T> Map<String,T> |
getBeansOfType(Class<T> type) |
<T> Map<String,T> |
getBeansOfType(Class<T> type,
boolean includeNonSingletons,
boolean allowEagerInit) |
Map<String,Object> |
getBeansWithAnnotation(Class<? extends Annotation> annotationType) |
static ServerConfiguration |
getConfig()
Gets the server configuration.
|
static Element |
getConfigElement(File homeDir) |
String |
getConfigSummary() |
static Date |
getCurrentDate(Context context)
Get the current date from the context.
|
DatastoreConfig |
getDatastoreConfig(String id)
Gets a
DatastoreConfig. |
protected org.springframework.context.support.AbstractApplicationContext |
getDefaultContext() |
File |
getHomeDir()
Gets the server's home directory; this is typically the 'server' subdirectory under $FEDORA_HOME.
|
static Server |
getInstance(File homeDir)
Provides an instance of the server specified in the configuration file at
homeDir/CONFIG_DIR/CONFIG_FILE, or DEFAULT_SERVER_CLASS if unspecified.
|
static Server |
getInstance(File homeDir,
boolean okToStart) |
static Locale |
getLocale() |
Module |
getModule(String role)
Gets a loaded
Module. |
static PID |
getPID(String pidString) |
protected static org.springframework.context.annotation.ScannedGenericBeanDefinition |
getScannedBeanDefinition(String className) |
protected org.springframework.beans.factory.config.BeanDefinition |
getServerBeanDefinition() |
protected static org.springframework.beans.factory.config.BeanDefinition |
getServerConfigurationBeanDefinition()
Provide a generic bean definition if the Server was not created by Spring
|
ServerStatusFile |
getStatusFile()
Get the status file for the server.
|
protected static org.springframework.beans.factory.support.GenericBeanDefinition |
getTriplestoreConnectorBeanDefinition(DatastoreConfiguration tsDC) |
Class<?> |
getType(String name) |
File |
getUploadDir()
Gets the server's temp file upload directory.
|
WebClientConfiguration |
getWebClientConfig()
Gets the web client http connection configuration object.
|
boolean |
hasInitialized()
Tells whether the server (and loaded modules) have initialized.
|
static boolean |
hasInstance(File homeDir) |
void |
init() |
protected void |
initServer()
Performs any server start-up tasks particular to this type of Server.
|
boolean |
isAlias(String beanName) |
boolean |
isBeanNameInUse(String beanName) |
boolean |
isPrototype(String name) |
boolean |
isSingleton(String name) |
boolean |
isTypeMatch(String name,
Class targetType) |
protected boolean |
knownBeanDefinition(String beanName) |
Iterator<String> |
loadedModuleRoles()
Gets an
Iterator over the roles that have been loaded. |
protected String |
overrideModuleClass(String moduleClass) |
protected boolean |
overrideModuleRole(String moduleRole) |
static PID |
pidFromFilename(String filename) |
protected void |
postInitServer()
Second stage of Server initialization.
|
void |
registerAlias(String beanName,
String alias) |
void |
registerBeanDefinition(String beanName,
org.springframework.beans.factory.config.BeanDefinition beanDefinition) |
protected void |
registerBeanDefinitions()
Register any implementation-specific bean definitions before the context is refreshed.
|
void |
removeAlias(String alias) |
void |
removeBeanDefinition(String beanName) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
shutdown(Context context)
Performs shutdown tasks for the modules and the server.
|
protected void |
shutdownServer()
Performs shutdown tasks for the server itself.
|
String |
status(Context context) |
getHelp, getOptionalParameters, getParameterHelp, getRequiredModuleRoles, getRequiredParametersgetParameter, getParameter, getParameter, getParameterList, getParameters, getParameters, parameterNames, setParameter, setParameters, setParameterspublic static final boolean USE_CACHE
public static final boolean USE_DEFINITIVE_STORE
public static final boolean GLOBAL_CHOICE
public static String VERSION
public static String BUILD_DATE
public static String HOME_PROPERTY
public static String STORAGE_FORMAT
public static String CONFIG_DIR
public static String SPRING_DIR
public static String LOG_STARTUP_FILE
Level.public static String CONFIG_FILE
public static String EXTENSION_DIR
public static String BIN_DIR
public static String NAMESPACE_PREFIX
public static String CONFIG_NAMESPACE
public static String CONFIG_ELEMENT_ROOT
public static String CONFIG_ELEMENT_COMMENT
public static String CONFIG_ELEMENT_DATASTORE
public static String CONFIG_ELEMENT_MODULE
public static String CONFIG_ELEMENT_PARAM
public static String CONFIG_ATTRIBUTE_CLASS
public static String CONFIG_ATTRIBUTE_ROLE
public static String CONFIG_ATTRIBUTE_NAME
public static String CONFIG_ATTRIBUTE_VALUE
public static String CONFIG_ATTRIBUTE_ID
public static String SERVER_CONSTRUCTOR_PARAM1_CLASS
public static String SERVER_CONSTRUCTOR_PARAM2_CLASS
public static String MODULE_CONSTRUCTOR_PARAM1_CLASS
public static String MODULE_CONSTRUCTOR_PARAM2_CLASS
public static String MODULE_CONSTRUCTOR_PARAM3_CLASS
public static String DEFAULT_SERVER_CLASS
public static String INIT_XMLPARSER_SEVERE_MISSING
public static String INIT_CONFIG_SEVERE_UNREADABLE
public static String INIT_CONFIG_SEVERE_MALFORMEDXML
public static String INIT_CONFIG_SEVERE_BADROOTELEMENT
public static String INIT_CONFIG_SEVERE_BADELEMENT
public static String INIT_CONFIG_SEVERE_NOIDGIVEN
public static String INIT_CONFIG_SEVERE_BADNAMESPACE
public static String INIT_CONFIG_SEVERE_NOROLEGIVEN
public static String INIT_CONFIG_SEVERE_NOCLASSGIVEN
public static String INIT_CONFIG_SEVERE_REASSIGNMENT
public static String INIT_CONFIG_SEVERE_INCOMPLETEPARAM
public static String INIT_CONFIG_CONFIG_EXAMININGELEMENT
public static String INIT_CONFIG_CONFIG_PARAMETERIS
public static String INIT_SERVER_SEVERE_CLASSNOTFOUND
public static String INIT_SERVER_SEVERE_ILLEGALACCESS
public static String INIT_SERVER_SEVERE_BADARGS
public static String INIT_SERVER_SEVERE_MISSINGCONSTRUCTOR
public static String INIT_SERVER_SEVERE_UNFULFILLEDROLE
public static String INIT_MODULE_SEVERE_UNFULFILLEDROLE
public static String INIT_SERVER_SEVERE_ISABSTRACT
public static String INIT_MODULE_SEVERE_CLASSNOTFOUND
public static String INIT_MODULE_SEVERE_ILLEGALACCESS
public static String INIT_MODULE_SEVERE_BADARGS
public static String INIT_MODULE_SEVERE_MISSINGCONSTRUCTOR
public static String INIT_MODULE_SEVERE_ISABSTRACT
public static String INIT_LOG_WARNING_CANTWRITESTARTUPLOG
protected static Map<File,Server> s_instances
Server for each distinct
File given as a parameter to getInstance(...)@Deprecated protected Map<String,Module> m_loadedModules
@Deprecated protected Set<String> m_loadedModuleRoles
protected Server(Map<String,String> params, File homeDir) throws ServerInitializationException, ModuleInitializationException
protected Server(Element rootConfigElement, File homeDir) throws ServerInitializationException, ModuleInitializationException
Reads and schema-validates the configuration items in the given DOM
NodeList, validates required server params, initializes
the Server, then initializes each module, validating its
required params, then verifies that the server's required module roles
have been met.rootConfigElement - The root Element of configuration.homeDir - The home directory of fedora, used to interpret relative paths
used in configuration.ServerInitializationException - If there was an error starting the server.ModuleInitializationException - If there was an error starting a module.protected Server(File homeDir) throws ServerInitializationException, ModuleInitializationException
homeDir - ServerInitializationExceptionModuleInitializationExceptionpublic void init()
throws ServerInitializationException,
ModuleInitializationException
protected org.springframework.context.support.AbstractApplicationContext getDefaultContext()
throws IOException
IOExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwareprotected org.springframework.beans.factory.config.BeanDefinition getServerBeanDefinition()
protected static org.springframework.beans.factory.config.BeanDefinition getServerConfigurationBeanDefinition()
public void registerBeanDefinition(String beanName, org.springframework.beans.factory.config.BeanDefinition beanDefinition)
registerBeanDefinition in interface org.springframework.beans.factory.support.BeanDefinitionRegistryprotected void registerBeanDefinitions()
throws ServerInitializationException
ServerInitializationExceptionprotected static org.springframework.context.annotation.ScannedGenericBeanDefinition getScannedBeanDefinition(String className) throws IOException
IOExceptionprotected static org.springframework.beans.factory.support.GenericBeanDefinition createModuleBeanDefinition(String className, Map<String,String> params, String role) throws IOException
className - server - params - role - IOExceptionprotected static org.springframework.beans.factory.support.GenericBeanDefinition createModuleConfigurationBeanDefinition(String role)
protected static org.springframework.beans.factory.support.GenericBeanDefinition createDatastoreConfigurationBeanDefinition(String id)
protected static org.springframework.beans.factory.support.GenericBeanDefinition getTriplestoreConnectorBeanDefinition(DatastoreConfiguration tsDC) throws IOException
DatastoreConfiguration - tsDC : the datastore configuration intended for the triplestore connectorClassNotFoundExceptionIOExceptionpublic Object getBean(String name) throws org.springframework.beans.BeansException
getBean in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.BeansExceptionpublic boolean containsBean(String name) throws org.springframework.beans.BeansException
containsBean in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.BeansExceptionpublic Module getModule(String role)
Module.role - The role of the Module to get.Module, null if not found.protected boolean overrideModuleRole(String moduleRole)
public final boolean hasInitialized()
This is useful for threaded
Modules that need to wait
until all initialization has occurred before doing something.public ServerStatusFile getStatusFile()
public static final boolean hasInstance(File homeDir)
public final String status(Context context) throws AuthzException
AuthzExceptionpublic static final Server getInstance(File homeDir, boolean okToStart) throws ServerInitializationException, ModuleInitializationException
public static final Element getConfigElement(File homeDir) throws ServerInitializationException
ServerInitializationExceptionpublic static final Server getInstance(File homeDir) throws ServerInitializationException, ModuleInitializationException
homeDir - The base directory for the server.ServerInitializationException - If there was an error starting the server.ModuleInitializationException - If there was an error starting a module.public final File getHomeDir()
public File getUploadDir()
public final DatastoreConfig getDatastoreConfig(String id)
DatastoreConfig.id - The id as given in the server configuration.DatastoreConfig, null if not
found.public final Iterator<String> loadedModuleRoles()
Iterator over the roles that have been loaded.Strings) The roles.protected void initServer()
throws ServerInitializationException
This is guaranteed to be run before any modules are loaded. The default implementation does nothing.
ServerInitializationException - If a severe server startup-related error occurred.protected void postInitServer()
throws ServerInitializationException
This is guaranteed to be run after all Modules have been loaded and all module initialization (initModule() and postInitModule()) has taken place. The default implementation does nothing.
ServerInitializationException - If a severe server startup-related error occurred.public final void shutdown(Context context) throws ServerShutdownException, ModuleShutdownException, AuthzException
All loaded modules' shutdownModule() methods are called, then shutdownServer is called.
After having used a
Server instance, if you know your
program is the only client of the Server in the VM
instance, you should make an explicit call to this method so that you can
catch and handle its exceptions properly. If you are usure or know that
there may be at least one other client of the Server in
the VM instance, you should call System.runFinalization()
after ensuring you no longer have a reference. In this case, if there is
no other reference to the object in the VM, finalization will be called
(but you will be unable to catch ShutdownException
variants, if thrown).
Right before this is finished, the instance is removed from the server instances map.
ServerShutdownException - If a severe server shutdown-related error occurred.
USER_REPRESENTED = addName(new XacmlName(this,
"subjectRepresented"));ModuleShutdownException - If a severe module shutdown-related error occurred.AuthzExceptionprotected void shutdownServer()
throws ServerShutdownException
ServerShutdownException after attempts to free every
resource have been made.ServerShutdownException - If a severe server shutdown-related error occurred.public final void finalize()
throws ServerShutdownException,
ModuleShutdownException
shutdown() when finalization occurs.finalize in class ObjectServerShutdownException - If a severe server shutdown-related error occurred.ModuleShutdownException - If a severe module shutdown-related error occurred.public static final Locale getLocale()
public String getConfigSummary()
public static PID getPID(String pidString) throws MalformedPidException
MalformedPidExceptionpublic static PID pidFromFilename(String filename) throws MalformedPidException
MalformedPidExceptionpublic static Date getCurrentDate(Context context) throws GeneralException
GeneralExceptionpublic static ServerConfiguration getConfig()
public WebClientConfiguration getWebClientConfig()
protected boolean knownBeanDefinition(String beanName)
public boolean containsBeanDefinition(String beanName)
containsBeanDefinition in interface org.springframework.beans.factory.ListableBeanFactorycontainsBeanDefinition in interface org.springframework.beans.factory.support.BeanDefinitionRegistrypublic org.springframework.beans.factory.config.BeanDefinition getBeanDefinition(String beanName) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
getBeanDefinition in interface org.springframework.beans.factory.support.BeanDefinitionRegistryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic int getBeanDefinitionCount()
getBeanDefinitionCount in interface org.springframework.beans.factory.ListableBeanFactorygetBeanDefinitionCount in interface org.springframework.beans.factory.support.BeanDefinitionRegistrypublic String[] getBeanDefinitionNames()
getBeanDefinitionNames in interface org.springframework.beans.factory.ListableBeanFactorygetBeanDefinitionNames in interface org.springframework.beans.factory.support.BeanDefinitionRegistrypublic boolean isBeanNameInUse(String beanName)
isBeanNameInUse in interface org.springframework.beans.factory.support.BeanDefinitionRegistrypublic void removeBeanDefinition(String beanName) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
removeBeanDefinition in interface org.springframework.beans.factory.support.BeanDefinitionRegistryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic String[] getAliases(String name)
getAliases in interface org.springframework.beans.factory.BeanFactorygetAliases in interface org.springframework.core.AliasRegistrypublic boolean isAlias(String beanName)
isAlias in interface org.springframework.core.AliasRegistrypublic void registerAlias(String beanName, String alias)
registerAlias in interface org.springframework.core.AliasRegistrypublic void removeAlias(String alias)
removeAlias in interface org.springframework.core.AliasRegistrypublic String[] getBeanNamesForType(Class type)
getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactorypublic String[] getBeanNamesForType(Class type, boolean includeNonSingletons, boolean allowEagerInit)
getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactorypublic <T> Map<String,T> getBeansOfType(Class<T> type) throws org.springframework.beans.BeansException
getBeansOfType in interface org.springframework.beans.factory.ListableBeanFactoryorg.springframework.beans.BeansExceptionpublic <T> Map<String,T> getBeansOfType(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit) throws org.springframework.beans.BeansException
getBeansOfType in interface org.springframework.beans.factory.ListableBeanFactoryorg.springframework.beans.BeansExceptionpublic <T> T getBean(String name, Class<T> type) throws org.springframework.beans.BeansException
getBean in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.BeansExceptionpublic <T> T getBean(Class<T> requiredType) throws org.springframework.beans.BeansException
getBean in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.BeansExceptionpublic Object getBean(String name, Object... args) throws org.springframework.beans.BeansException
getBean in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.BeansExceptionpublic Class<?> getType(String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
getType in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic boolean isPrototype(String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isPrototype in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic boolean isSingleton(String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isSingleton in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic boolean isTypeMatch(String name, Class targetType) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isTypeMatch in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic Map<String,Object> getBeansWithAnnotation(Class<? extends Annotation> annotationType) throws org.springframework.beans.BeansException
getBeansWithAnnotation in interface org.springframework.beans.factory.ListableBeanFactoryorg.springframework.beans.BeansExceptionpublic <T extends Annotation> T findAnnotationOnBean(String beanName, Class<T> annotationType)
findAnnotationOnBean in interface org.springframework.beans.factory.ListableBeanFactoryCopyright © 2013 DuraSpace. All Rights Reserved.