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
StoreFactory saves special elements.
Output was generate with StoreAppenders.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final StringManager
The string manager for this package. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetInfo()
get Registryvoid
setRegistry
(StoreRegistry aRegistry) Set Registryvoid
setStoreAppender
(StoreAppender storeAppender) void
store
(PrintWriter aWriter, int indent, Object aElement) Store a server.xml element with attributes and childrenvoid
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)
-
Field Details
-
sm
The string manager for this package.
-
-
Constructor Details
-
StoreFactoryBase
public StoreFactoryBase()
-
-
Method Details
-
getInfo
- Returns:
- descriptive information about this Factory implementation and the
corresponding version number, in the format
<description>/<version>
.
-
getStoreAppender
- Specified by:
getStoreAppender
in interfaceIStoreFactory
- Returns:
- Returns the storeAppender.
-
setStoreAppender
- Specified by:
setStoreAppender
in interfaceIStoreFactory
- Parameters:
storeAppender
- The storeAppender to set.
-
setRegistry
Set Registry- Specified by:
setRegistry
in interfaceIStoreFactory
- See Also:
-
getRegistry
get Registry- Specified by:
getRegistry
in interfaceIStoreFactory
- See Also:
-
storeXMLHead
- Specified by:
storeXMLHead
in interfaceIStoreFactory
-
store
Store a server.xml element with attributes and children- Specified by:
store
in interfaceIStoreFactory
- Throws:
Exception
- See Also:
-
storeChildren
public 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 writerindent
- Indentation levelaElement
- Current elementelementDesc
- The element description- Throws:
Exception
- Configuration storing error
-
storeElement
Store only elements from storeChildren methods that are not a transient child.- Parameters:
aWriter
- Current output writerindent
- Indentation levelaTagElement
- Current element- Throws:
Exception
- Configuration storing error
-
storeElementArray
protected void storeElementArray(PrintWriter aWriter, int indent, Object[] elements) throws Exception Save a array of elements.- Parameters:
aWriter
- Current output writerindent
- Indentation levelelements
- Array of elements- Throws:
Exception
- Configuration storing error
-