Package org.apache.catalina.storeconfig
Interface IStoreFactory
-
- All Known Implementing Classes:
CatalinaClusterSF,ChannelSF,ConnectorSF,CredentialHandlerSF,GlobalNamingResourcesSF,InterceptorSF,JarScannerSF,LoaderSF,ManagerSF,NamingResourcesSF,OpenSSLConfSF,PersistentManagerSF,RealmSF,SenderSF,SSLHostConfigSF,StandardContextSF,StandardEngineSF,StandardHostSF,StandardServerSF,StandardServiceSF,StoreFactoryBase,WatchedResourceSF,WebResourceRootSF,WrapperLifecycleSF,WrapperListenerSF
public interface IStoreFactoryInterface for storing XML elements to a configuration file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StoreRegistrygetRegistry()Get the associated registry.StoreAppendergetStoreAppender()Get the store appender.voidsetRegistry(StoreRegistry aRegistry)Set the registry.voidsetStoreAppender(StoreAppender storeWriter)Set the store appender.voidstore(java.io.PrintWriter aWriter, int indent, java.lang.Object aElement)Store a server.xml element with attributes and children.voidstoreXMLHead(java.io.PrintWriter aWriter)Store XML header.
-
-
-
Method Detail
-
getStoreAppender
StoreAppender getStoreAppender()
Get the store appender.- Returns:
- the writer
-
setStoreAppender
void setStoreAppender(StoreAppender storeWriter)
Set the store appender.- Parameters:
storeWriter- the writer
-
setRegistry
void setRegistry(StoreRegistry aRegistry)
Set the registry.- Parameters:
aRegistry- the registry to be associated with
-
getRegistry
StoreRegistry getRegistry()
Get the associated registry.- Returns:
- the associated registry
-
store
void store(java.io.PrintWriter aWriter, int indent, java.lang.Object aElement) throws java.lang.ExceptionStore a server.xml element with attributes and children.- Parameters:
aWriter- the writer to write toindent- the indentationaElement- the element to write- Throws:
java.lang.Exception- if an error occurs
-
storeXMLHead
void storeXMLHead(java.io.PrintWriter aWriter)
Store XML header.- Parameters:
aWriter- the writer to write to
-
-