Package org.apache.catalina.storeconfig
Class StoreRegistry
java.lang.Object
org.apache.catalina.storeconfig.StoreRegistry
Central StoreRegistry for all server.xml elements
-
Constructor Summary
-
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.getName()
void
Register a new description.void
setEncoding
(String string) Set the encoding to use when writing the configuration files.void
void
setVersion
(String version) Unregister a description.
-
Constructor Details
-
StoreRegistry
public StoreRegistry()
-
-
Method Details
-
getName
- Returns:
- Returns the name.
-
setName
- Parameters:
name
- The name to set.
-
getVersion
- Returns:
- Returns the version.
-
setVersion
- Parameters:
version
- The version to set.
-
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
null
if it was not registered
-
getEncoding
- Returns:
- The encoding
-
setEncoding
Set the encoding to use when writing the configuration files.- Parameters:
string
- The encoding
-