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 a array of elements.
|
void |
storeXMLHead(PrintWriter aWriter) |
protected static final StringManager sm
public String getInfo()
<description>/<version>
.public StoreAppender getStoreAppender()
getStoreAppender
in interface IStoreFactory
public void setStoreAppender(StoreAppender storeAppender)
setStoreAppender
in interface IStoreFactory
storeAppender
- The storeAppender to set.public void setRegistry(StoreRegistry aRegistry)
setRegistry
in interface IStoreFactory
IStoreFactory.setRegistry(org.apache.catalina.storeconfig.StoreRegistry)
public StoreRegistry getRegistry()
getRegistry
in interface IStoreFactory
IStoreFactory.getRegistry()
public void storeXMLHead(PrintWriter aWriter)
storeXMLHead
in interface IStoreFactory
public void store(PrintWriter aWriter, int indent, Object aElement) throws Exception
store
in interface IStoreFactory
Exception
IStoreFactory.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-2016 Apache Software Foundation. All Rights Reserved.