Package org.apache.struts2.config
Class AbstractBeanSelectionProvider
java.lang.Object
org.apache.struts2.config.AbstractBeanSelectionProvider
- All Implemented Interfaces:
BeanSelectionProvider,ConfigurationProvider,ContainerProvider,PackageProvider
- Direct Known Subclasses:
StrutsBeanSelectionProvider
TODO lukaszlenart: write a JavaDoc
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidalias(Class type, String key, ContainerBuilder builder, Properties props) protected voidalias(Class type, String key, ContainerBuilder builder, Properties props, Scope scope) voiddestroy()Called before removed from the configuration managervoidinit(Configuration configuration) Initializes with the configurationvoidLoads the packages for the configuration.booleanTells whether the ContainerProvider should reload its configurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.struts2.config.ContainerProvider
register
-
Field Details
-
DEFAULT_BEAN_NAME
- See Also:
-
-
Constructor Details
-
AbstractBeanSelectionProvider
public AbstractBeanSelectionProvider()
-
-
Method Details
-
destroy
public void destroy()Description copied from interface:ContainerProviderCalled before removed from the configuration manager- Specified by:
destroyin interfaceContainerProvider
-
loadPackages
Description copied from interface:PackageProviderLoads the packages for the configuration.- Specified by:
loadPackagesin interfacePackageProvider- Throws:
ConfigurationException- in case of configuration errors
-
init
Description copied from interface:ContainerProviderInitializes with the configuration- Specified by:
initin interfaceContainerProvider- Specified by:
initin interfacePackageProvider- Parameters:
configuration- The configuration- Throws:
ConfigurationException- If anything goes wrong
-
needsReload
public boolean needsReload()Description copied from interface:ContainerProviderTells whether the ContainerProvider should reload its configuration- Specified by:
needsReloadin interfaceContainerProvider- Specified by:
needsReloadin interfacePackageProvider- Returns:
- true, whether the ContainerProvider should reload its configuration, falseotherwise.
-
alias
-
alias
protected void alias(Class type, String key, ContainerBuilder builder, Properties props, Scope scope)
-