Package org.apache.catalina.storeconfig
Class StoreRegistry
java.lang.Object
org.apache.catalina.storeconfig.StoreRegistry
-
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:
- the name
-
setName
- Parameters:
name
- The name to set.
-
getVersion
- 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
-