public class StrutsJavaConfigurationProvider extends Object implements ConfigurationProvider
Constructor and Description |
---|
StrutsJavaConfigurationProvider(StrutsJavaConfiguration javaConfig) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Called before removed from the configuration manager
|
void |
init(Configuration configuration)
Initializes with the configuration
|
void |
loadPackages()
Loads the packages for the configuration.
|
boolean |
needsReload()
Tells whether the ContainerProvider should reload its configuration
|
void |
register(ContainerBuilder builder,
LocatableProperties props)
Registers beans and properties for the Container
|
void |
setThrowExceptionOnDuplicateBeans(boolean val) |
void |
setValueSubstitutor(ValueSubstitutor valueSubstitutor) |
public StrutsJavaConfigurationProvider(StrutsJavaConfiguration javaConfig)
public void setThrowExceptionOnDuplicateBeans(boolean val)
public void setValueSubstitutor(ValueSubstitutor valueSubstitutor)
public void register(ContainerBuilder builder, LocatableProperties props) throws ConfigurationException
ContainerProvider
register
in interface ContainerProvider
builder
- The builder to register beans withprops
- The properties to register constants withConfigurationException
- If anything goes wrongpublic void init(Configuration configuration) throws ConfigurationException
ContainerProvider
init
in interface ContainerProvider
init
in interface PackageProvider
configuration
- The configurationConfigurationException
- If anything goes wrongpublic boolean needsReload()
ContainerProvider
needsReload
in interface ContainerProvider
needsReload
in interface PackageProvider
public void loadPackages() throws ConfigurationException
PackageProvider
loadPackages
in interface PackageProvider
ConfigurationException
- in case of configuration errorspublic void destroy()
ContainerProvider
destroy
in interface ContainerProvider
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.