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 void
alias
(Class type, String key, ContainerBuilder builder, Properties props) protected void
alias
(Class type, String key, ContainerBuilder builder, Properties props, Scope scope) void
destroy()
Called before removed from the configuration managervoid
init
(Configuration configuration) Initializes with the configurationvoid
Loads the packages for the configuration.boolean
Tells whether the ContainerProvider should reload its configurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ContainerProvider
Called before removed from the configuration manager- Specified by:
destroy
in interfaceContainerProvider
-
loadPackages
Description copied from interface:PackageProvider
Loads the packages for the configuration.- Specified by:
loadPackages
in interfacePackageProvider
- Throws:
ConfigurationException
- in case of configuration errors
-
init
Description copied from interface:ContainerProvider
Initializes with the configuration- Specified by:
init
in interfaceContainerProvider
- Specified by:
init
in interfacePackageProvider
- Parameters:
configuration
- The configuration- Throws:
ConfigurationException
- If anything goes wrong
-
needsReload
public boolean needsReload()Description copied from interface:ContainerProvider
Tells whether the ContainerProvider should reload its configuration- Specified by:
needsReload
in interfaceContainerProvider
- Specified by:
needsReload
in 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)
-