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
StoreFactory saves special elements. Output was generate with StoreAppenders.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final StringManagerThe string manager for this package.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetInfo()voidsetRegistry(StoreRegistry aRegistry) Set the registry.voidsetStoreAppender(StoreAppender storeAppender) Set the store appender.voidstore(PrintWriter aWriter, int indent, Object aElement) Store a server.xml element with attributes and children.voidstoreChildren(PrintWriter aWriter, int indent, Object aElement, StoreDescription elementDesc) Must Implement at subclass for custom store children handling.protected voidstoreElement(PrintWriter aWriter, int indent, Object aTagElement) Store only elements from storeChildren methods that are not a transient child.protected voidstoreElementArray(PrintWriter aWriter, int indent, Object[] elements) Save an array of elements.voidstoreXMLHead(PrintWriter aWriter) Store XML header.
- 
Field Details- 
smThe string manager for this package.
 
- 
- 
Constructor Details- 
StoreFactoryBasepublic StoreFactoryBase()
 
- 
- 
Method Details- 
getInfo- Returns:
- descriptive information about this Factory implementation and the corresponding version number, in the
             format <description>/<version>.
 
- 
getStoreAppender- Specified by:
- getStoreAppenderin interface- IStoreFactory
- Returns:
- the writer
 
- 
setStoreAppenderDescription copied from interface:IStoreFactorySet the store appender.- Specified by:
- setStoreAppenderin interface- IStoreFactory
- Parameters:
- storeAppender- the writer
 
- 
setRegistryDescription copied from interface:IStoreFactorySet the registry.- Specified by:
- setRegistryin interface- IStoreFactory
- Parameters:
- aRegistry- the registry to be associated with
 
- 
getRegistry- Specified by:
- getRegistryin interface- IStoreFactory
- Returns:
- the associated registry
 
- 
storeXMLHeadDescription copied from interface:IStoreFactoryStore XML header.- Specified by:
- storeXMLHeadin interface- IStoreFactory
- Parameters:
- aWriter- the writer to write to
 
- 
storeDescription copied from interface:IStoreFactoryStore a server.xml element with attributes and children.- Specified by:
- storein interface- IStoreFactory
- Parameters:
- aWriter- the writer to write to
- indent- the indentation
- aElement- the element to write
- Throws:
- Exception- if an error occurs
 
- 
storeChildrenpublic void storeChildren(PrintWriter aWriter, int indent, Object aElement, StoreDescription elementDesc) throws Exception Must Implement at subclass for custom store children handling.- Parameters:
- aWriter- Current output writer
- indent- Indentation level
- aElement- Current element
- elementDesc- The element description
- Throws:
- Exception- Configuration storing error
 
- 
storeElementStore only elements from storeChildren methods that are not a transient child.- Parameters:
- aWriter- Current output writer
- indent- Indentation level
- aTagElement- Current element
- Throws:
- Exception- Configuration storing error
 
- 
storeElementArrayprotected void storeElementArray(PrintWriter aWriter, int indent, Object[] elements) throws Exception Save an array of elements.- Parameters:
- aWriter- Current output writer
- indent- Indentation level
- elements- Array of elements
- Throws:
- Exception- Configuration storing error
 
 
-