Class StoreRegistry
java.lang.Object
org.apache.catalina.storeconfig.StoreRegistry
Central StoreRegistry for all server.xml elements
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindDescription(Class<?> aClass) Find Description by class.Find a description for id.findStoreFactory(Class<?> aClass) Find factory from class.findStoreFactory(String aClassName) Find factory from class name.Returns the character encoding used when writing configuration files.getName()Returns the name of this registry.Returns the version of this registry.voidRegister a new description.voidsetEncoding(String string) Set the encoding to use when writing the configuration files.voidSets the name of this registry.voidsetVersion(String version) Sets the version of this registry.Unregister a description.
-
Constructor Details
-
StoreRegistry
public StoreRegistry()Constructs a new StoreRegistry with default settings.
-
-
Method Details
-
getName
-
setName
Sets the name of this registry.- Parameters:
name- the registry name
-
getVersion
-
setVersion
Sets the version of this registry.- Parameters:
version- the registry version
-
findDescription
Find a description for id. Handle interface search when no direct match found.- Parameters:
id- The class name- Returns:
- the description
-
findDescription
Find Description by class.- Parameters:
aClass- The class- Returns:
- the description
-
findStoreFactory
Find factory from class name.- Parameters:
aClassName- The class name- Returns:
- the factory
-
findStoreFactory
Find factory from class.- Parameters:
aClass- The class- Returns:
- the factory
-
registerDescription
Register a new description.- Parameters:
desc- New description
-
unregisterDescription
Unregister a description.- Parameters:
desc- The description- Returns:
- the description, or
nullif it was not registered
-
getEncoding
Returns the character encoding used when writing configuration files.- Returns:
- the character encoding
-
setEncoding
Set the encoding to use when writing the configuration files.- Parameters:
string- The encoding
-