Package org.apache.catalina.storeconfig
Class StoreLoader
java.lang.Object
org.apache.catalina.storeconfig.StoreLoader
XML Format
<Registry name="" encoding="UTF-8" >
<Description
tag="Server"
standard="true"
default="true"
tagClass="org.apache.catalina.core.StandardServer"
storeFactoryClass="org.apache.catalina.storeconfig.StandardServerSF">
<TransientAttributes>
<Attribute></Attribute>
</TransientAttributes>
<TransientChildren>
<Child></Child>
</TransientChildren>
</Description>
...
</Registry>
Convention:
- Factories at subpackage org.apache.catalina.core.storeconfig.xxxSF .
- Element name are the unique Class name
- SF for StoreFactory
- standard implementation is false
- Registry XML format is a very good option
- Store format is not fix
- We hope with the parent declaration we can build recursive child store operation //dream
- Problem is to access child data from array,collections or normal detail object
- Default definitions for Listener, Valve Resource? - Based on interface type!
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static Digester
Create and configure the Digester we will be using for setup store registry.void
Load registry configuration.void
setRegistry
(StoreRegistry registry)
-
Field Details
-
digester
TheDigester
instance used to parse registry descriptors.
-
-
Constructor Details
-
StoreLoader
public StoreLoader()
-
-
Method Details
-
getRegistry
- Returns:
- Returns the registry.
-
setRegistry
- Parameters:
registry
- The registry to set.
-
createDigester
Create and configure the Digester we will be using for setup store registry.- Returns:
- the XML digester that will be used to parse the configuration
-
load
-
getRegistryResource
- Returns:
- the registryResource.
-