Package org.apache.catalina.storeconfig
Class StoreContextAppender
java.lang.Object
org.apache.catalina.storeconfig.StoreAppender
org.apache.catalina.storeconfig.StoreContextAppender
store StandardContext Attributes ...
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondefaultInstance(Object bean) Generate a real default StandardContext TODO read and interpret the default context.xml and context.xml.default TODO Cache a Default StandardContext ( with reloading strategy) TODO remove really all elements, but detection is hard...protected FilegetAppBase(StandardHost host) protected StringgetDefaultWorkDir(StandardContext context) Make default Work Dir.protected FilegetDocBase(StandardContext context, File appBase) booleanisPrintValue(Object bean, Object bean2, String attrName, StoreDescription desc) Print Context Values.protected voidprintAttribute(PrintWriter writer, int indent, Object bean, StoreDescription desc, String attributeName, Object bean2, Object value) Store the specified of the specified JavaBean.Methods inherited from class org.apache.catalina.storeconfig.StoreAppendercheckAttribute, isPersistable, printAttributes, printAttributes, printCloseTag, printIndent, printOpenTag, printTag, printTagArray, printTagContent, printTagValueArray, printValue
- 
Constructor Details- 
StoreContextAppenderpublic StoreContextAppender()
 
- 
- 
Method Details- 
printAttributeprotected void printAttribute(PrintWriter writer, int indent, Object bean, StoreDescription desc, String attributeName, Object bean2, Object value) Store the specified of the specified JavaBean. Adds special handling fordocBase.- Overrides:
- printAttributein class- StoreAppender
- Parameters:
- writer- PrintWriter to which we are storing
- indent- Indentation level
- bean- The current bean
- desc- RegistryDescriptor from this bean
- attributeName- The attribute name to store
- bean2- A default instance of the bean for comparison
- value- The attribute value
 
- 
isPrintValuePrint Context Values.- Special handling to default workDir.
- Don't save path at external context.xml
- Don't generate docBase for host.appBase webapps
 - Overrides:
- isPrintValuein class- StoreAppender
- Parameters:
- bean- original bean
- bean2- default bean
- attrName- attribute name
- desc- StoreDescription from bean
- Returns:
- trueif the value should be stored
- See Also:
 
- 
getAppBase
- 
getDocBase
- 
getDefaultWorkDirMake default Work Dir.- Parameters:
- context- The context
- Returns:
- The default working directory for the context.
 
- 
defaultInstanceGenerate a real default StandardContext TODO read and interpret the default context.xml and context.xml.default TODO Cache a Default StandardContext ( with reloading strategy) TODO remove really all elements, but detection is hard... To Listener or Valve from same class?- Overrides:
- defaultInstancein class- StoreAppender
- Parameters:
- bean- The bean
- Returns:
- an object from same class as bean parameter
- Throws:
- ReflectiveOperationException- Error creating a new instance
- See Also:
 
 
-