Package org.apache.catalina.storeconfig
Class StoreFactoryBase
- java.lang.Object
- 
- org.apache.catalina.storeconfig.StoreFactoryBase
 
- 
- All Implemented Interfaces:
- IStoreFactory
 - Direct Known Subclasses:
- CatalinaClusterSF,- ChannelSF,- ConnectorSF,- CredentialHandlerSF,- GlobalNamingResourcesSF,- InterceptorSF,- JarScannerSF,- LoaderSF,- ManagerSF,- NamingResourcesSF,- OpenSSLConfSF,- PersistentManagerSF,- RealmSF,- SenderSF,- SSLHostConfigSF,- StandardContextSF,- StandardEngineSF,- StandardHostSF,- StandardServerSF,- StandardServiceSF,- WatchedResourceSF,- WebResourceRootSF,- WrapperLifecycleSF,- WrapperListenerSF
 
 public class StoreFactoryBase extends java.lang.Object implements IStoreFactory StoreFactory saves special elements. Output was generate with StoreAppenders.
- 
- 
Field SummaryFields Modifier and Type Field Description protected static StringManagersmThe string manager for this package.
 - 
Constructor SummaryConstructors Constructor Description StoreFactoryBase()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInfo()StoreRegistrygetRegistry()get RegistryStoreAppendergetStoreAppender()voidsetRegistry(StoreRegistry aRegistry)Set RegistryvoidsetStoreAppender(StoreAppender storeAppender)voidstore(java.io.PrintWriter aWriter, int indent, java.lang.Object aElement)Store a server.xml element with attributes and childrenvoidstoreChildren(java.io.PrintWriter aWriter, int indent, java.lang.Object aElement, StoreDescription elementDesc)Must Implement at subclass for custom store children handling.protected voidstoreElement(java.io.PrintWriter aWriter, int indent, java.lang.Object aTagElement)Store only elements from storeChildren methods that are not a transient child.protected voidstoreElementArray(java.io.PrintWriter aWriter, int indent, java.lang.Object[] elements)Save a array of elements.voidstoreXMLHead(java.io.PrintWriter aWriter)
 
- 
- 
- 
Field Detail- 
smprotected static final StringManager sm The string manager for this package.
 
- 
 - 
Method Detail- 
getInfopublic java.lang.String getInfo() - Returns:
- descriptive information about this Factory implementation and the
 corresponding version number, in the format
 <description>/<version>.
 
 - 
getStoreAppenderpublic StoreAppender getStoreAppender() - Specified by:
- getStoreAppenderin interface- IStoreFactory
- Returns:
- Returns the storeAppender.
 
 - 
setStoreAppenderpublic void setStoreAppender(StoreAppender storeAppender) - Specified by:
- setStoreAppenderin interface- IStoreFactory
- Parameters:
- storeAppender- The storeAppender to set.
 
 - 
setRegistrypublic void setRegistry(StoreRegistry aRegistry) Set Registry- Specified by:
- setRegistryin interface- IStoreFactory
- See Also:
- IStoreFactory.setRegistry(org.apache.catalina.storeconfig.StoreRegistry)
 
 - 
getRegistrypublic StoreRegistry getRegistry() get Registry- Specified by:
- getRegistryin interface- IStoreFactory
- See Also:
- IStoreFactory.getRegistry()
 
 - 
storeXMLHeadpublic void storeXMLHead(java.io.PrintWriter aWriter) - Specified by:
- storeXMLHeadin interface- IStoreFactory
 
 - 
storepublic void store(java.io.PrintWriter aWriter, int indent, java.lang.Object aElement) throws java.lang.ExceptionStore a server.xml element with attributes and children- Specified by:
- storein interface- IStoreFactory
- Throws:
- java.lang.Exception
- See Also:
- IStoreFactory.store(java.io.PrintWriter, int, java.lang.Object)
 
 - 
storeChildrenpublic void storeChildren(java.io.PrintWriter aWriter, int indent, java.lang.Object aElement, StoreDescription elementDesc) throws java.lang.ExceptionMust Implement at subclass for custom store children handling.- Parameters:
- aWriter- Current output writer
- indent- Indentation level
- aElement- Current element
- elementDesc- The element description
- Throws:
- java.lang.Exception- Configuration storing error
 
 - 
storeElementprotected void storeElement(java.io.PrintWriter aWriter, int indent, java.lang.Object aTagElement) throws java.lang.ExceptionStore only elements from storeChildren methods that are not a transient child.- Parameters:
- aWriter- Current output writer
- indent- Indentation level
- aTagElement- Current element
- Throws:
- java.lang.Exception- Configuration storing error
 
 - 
storeElementArrayprotected void storeElementArray(java.io.PrintWriter aWriter, int indent, java.lang.Object[] elements) throws java.lang.ExceptionSave a array of elements.- Parameters:
- aWriter- Current output writer
- indent- Indentation level
- elements- Array of elements
- Throws:
- java.lang.Exception- Configuration storing error
 
 
- 
 
-