public class StoreLoader extends Object
<Registry name="" encoding="UTF8" >
<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:
Modifier and Type | Field and Description |
---|---|
protected static Digester |
digester
The
Digester instance used to parse registry descriptors. |
Constructor and Description |
---|
StoreLoader() |
Modifier and Type | Method and Description |
---|---|
protected static Digester |
createDigester()
Create and configure the Digester we will be using for setup store
registry.
|
StoreRegistry |
getRegistry() |
URL |
getRegistryResource() |
void |
load()
Load from defaults
System Property URL catalina.storeregistry
File ${catalina.base}/conf/server-registry.xml
class resource org/apache/catalina/storeconfig/server-registry.xml
|
void |
load(String aURL)
Load main configuration file from external source.
|
protected File |
serverFile(String aFile)
Find main configuration file.
|
void |
setRegistry(StoreRegistry registry) |
protected static final Digester digester
Digester
instance used to parse registry descriptors.public StoreRegistry getRegistry()
public void setRegistry(StoreRegistry registry)
registry
- The registry to set.protected static Digester createDigester()
protected File serverFile(String aFile)
aFile
- File name, absolute or relative
to ${catalina.base}/conf
, if not specified
server-registry.xml
is usedpublic void load(String aURL)
aURL
- URL to the configuration filepublic void load()
public URL getRegistryResource()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.