public class StoreFactoryBase extends Object implements IStoreFactory
| Modifier and Type | Field and Description |
|---|---|
protected static StringManager |
sm
The string manager for this package.
|
| Constructor and Description |
|---|
StoreFactoryBase() |
| Modifier and Type | Method and Description |
|---|---|
String |
getInfo() |
StoreRegistry |
getRegistry()
get Registry
|
StoreAppender |
getStoreAppender() |
void |
setRegistry(StoreRegistry aRegistry)
Set Registry
|
void |
setStoreAppender(StoreAppender storeAppender) |
void |
store(PrintWriter aWriter,
int indent,
Object aElement)
Store a server.xml element with attributes and children
|
void |
storeChildren(PrintWriter aWriter,
int indent,
Object aElement,
StoreDescription elementDesc)
Must Implement at subclass for custom store children handling.
|
protected void |
storeElement(PrintWriter aWriter,
int indent,
Object aTagElement)
Store only elements from storeChildren methods that are not a transient
child.
|
protected void |
storeElementArray(PrintWriter aWriter,
int indent,
Object[] elements)
Save an array of elements.
|
void |
storeXMLHead(PrintWriter aWriter) |
protected static final StringManager sm
public String getInfo()
<description>/<version>.public StoreAppender getStoreAppender()
getStoreAppender in interface IStoreFactorypublic void setStoreAppender(StoreAppender storeAppender)
setStoreAppender in interface IStoreFactorystoreAppender - The storeAppender to set.public void setRegistry(StoreRegistry aRegistry)
setRegistry in interface IStoreFactoryIStoreFactory.setRegistry(org.apache.catalina.storeconfig.StoreRegistry)public StoreRegistry getRegistry()
getRegistry in interface IStoreFactoryIStoreFactory.getRegistry()public void storeXMLHead(PrintWriter aWriter)
storeXMLHead in interface IStoreFactorypublic void store(PrintWriter aWriter, int indent, Object aElement) throws Exception
store in interface IStoreFactoryExceptionIStoreFactory.store(java.io.PrintWriter,
int, java.lang.Object)public void storeChildren(PrintWriter aWriter, int indent, Object aElement, StoreDescription elementDesc) throws Exception
aWriter - Current output writerindent - Indentation levelaElement - Current elementelementDesc - The element descriptionException - Configuration storing errorprotected void storeElement(PrintWriter aWriter, int indent, Object aTagElement) throws Exception
aWriter - Current output writerindent - Indentation levelaTagElement - Current elementException - Configuration storing errorprotected void storeElementArray(PrintWriter aWriter, int indent, Object[] elements) throws Exception
aWriter - Current output writerindent - Indentation levelelements - Array of elementsException - Configuration storing errorCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.