public abstract class XmlConfigurationProvider extends XmlDocConfigurationProvider
Modifier and Type | Field and Description |
---|---|
protected FileManager |
fileManager |
allowlistClasses, configuration, declaredPackages, documents, dtdMappings, objectFactory, providerAllowlist, throwExceptionOnDuplicateBeans, valueSubstitutor
Constructor and Description |
---|
XmlConfigurationProvider() |
XmlConfigurationProvider(String filename) |
XmlConfigurationProvider(String filename,
boolean notUsed)
Deprecated.
since 6.2.0, use
XmlConfigurationProvider(String) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
protected Iterator<URL> |
getConfigurationUrls(String fileName) |
protected List<Document> |
getDocs(Iterator<URL> urls,
String fileName,
Element includeElement) |
protected List<Document> |
getFinalDocs(List<Document> docs) |
protected Iterator<URL> |
getURLs(String fileName) |
int |
hashCode() |
void |
init(Configuration configuration)
Initializes with the configuration
|
protected List<Document> |
loadConfigurationFiles(String fileName,
Element includeElement) |
void |
loadPackages()
Loads the packages for the configuration.
|
boolean |
needsReload()
Tells whether the ConfigurationProvider should reload its configuration.
|
protected List<Document> |
parseFile(String configFileName) |
void |
register(ContainerBuilder containerBuilder,
LocatableProperties props)
Registers beans and properties for the Container
|
void |
setFileManagerFactory(FileManagerFactory fileManagerFactory) |
String |
toString() |
addAction, addAllowedMethodsToSet, addPackage, addResultTypes, allowAndLoadClass, buildActionConfig, buildAllowedMethods, buildExceptionMappings, buildExceptionMappings, buildInterceptorConfig, buildInterceptorList, buildPackageContext, buildResultConfig, buildResultParams, buildResults, buildResultTypeConfig, destroy, getDtdMappings, guessResultType, iterateChildren, iterateChildrenByTagName, iterateElementChildren, iterateElementChildren, loadClass, loadDefaultActionRef, loadDefaultClassRef, loadDefaultInterceptorRef, loadExtraConfiguration, loadGlobalAllowedMethods, loadGlobalExceptionMappings, loadGlobalResults, loadInterceptors, loadInterceptorStack, loadInterceptorStacks, lookupInterceptorReference, registerBean, registerBeanSelection, registerConstant, registerUnknownHandlerStack, setDtdMappings, setObjectFactory, setProviderAllowlist, setThrowExceptionOnDuplicateBeans, setValueSubstitutor, verifyAction, verifyAction, verifyInterceptor, verifyResultType
protected FileManager fileManager
public XmlConfigurationProvider()
public XmlConfigurationProvider(String filename)
@Deprecated public XmlConfigurationProvider(String filename, @Deprecated boolean notUsed)
XmlConfigurationProvider(String)
public void setFileManagerFactory(FileManagerFactory fileManagerFactory)
public void init(Configuration configuration)
ContainerProvider
init
in interface ContainerProvider
init
in interface PackageProvider
init
in class XmlDocConfigurationProvider
configuration
- The configurationpublic void loadPackages() throws ConfigurationException
PackageProvider
loadPackages
in interface PackageProvider
loadPackages
in class XmlDocConfigurationProvider
ConfigurationException
- in case of configuration errorspublic void register(ContainerBuilder containerBuilder, LocatableProperties props) throws ConfigurationException
ContainerProvider
register
in interface ContainerProvider
register
in class XmlDocConfigurationProvider
containerBuilder
- The builder to register beans withprops
- The properties to register constants withConfigurationException
- If anything goes wrongpublic boolean needsReload()
needsReload
in interface ContainerProvider
needsReload
in interface PackageProvider
needsReload
in class XmlDocConfigurationProvider
protected List<Document> loadConfigurationFiles(String fileName, Element includeElement)
protected Iterator<URL> getConfigurationUrls(String fileName) throws IOException
IOException
protected List<Document> getDocs(Iterator<URL> urls, String fileName, Element includeElement)
Copyright © 2000–2024 Apache Software Foundation. All rights reserved.