public class StoreContextAppender extends StoreAppender
Constructor and Description |
---|
StoreContextAppender() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
defaultInstance(java.lang.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 java.io.File |
getAppBase(StandardHost host) |
protected java.lang.String |
getDefaultWorkDir(StandardContext context)
Make default Work Dir.
|
protected java.io.File |
getDocBase(StandardContext context,
java.io.File appBase) |
boolean |
isPrintValue(java.lang.Object bean,
java.lang.Object bean2,
java.lang.String attrName,
StoreDescription desc)
Print Context Values.
|
protected void |
printAttribute(java.io.PrintWriter writer,
int indent,
java.lang.Object bean,
StoreDescription desc,
java.lang.String attributeName,
java.lang.Object bean2,
java.lang.Object value)
Store the specified of the specified JavaBean.
|
isPersistable, printAttributes, printAttributes, printCloseTag, printIndent, printOpenTag, printTag, printTagArray, printTagContent, printTagValueArray, printValue
protected void printAttribute(java.io.PrintWriter writer, int indent, java.lang.Object bean, StoreDescription desc, java.lang.String attributeName, java.lang.Object bean2, java.lang.Object value)
docBase
.printAttribute
in class StoreAppender
writer
- PrintWriter to which we are storingindent
- Indentation levelbean
- The current beandesc
- RegistryDescriptor from this beanattributeName
- The attribute name to storebean2
- A default instance of the bean for comparisonvalue
- The attribute valuepublic boolean isPrintValue(java.lang.Object bean, java.lang.Object bean2, java.lang.String attrName, StoreDescription desc)
isPrintValue
in class StoreAppender
bean
- orginal beanbean2
- default beanattrName
- attribute namedesc
- StoreDescription from beantrue
if the value should be storedStoreAppender.isPrintValue(java.lang.Object,
java.lang.Object, java.lang.String,
org.apache.catalina.storeconfig.StoreDescription)
protected java.io.File getAppBase(StandardHost host)
protected java.io.File getDocBase(StandardContext context, java.io.File appBase)
protected java.lang.String getDefaultWorkDir(StandardContext context)
context
- The contextpublic java.lang.Object defaultInstance(java.lang.Object bean) throws java.lang.ReflectiveOperationException
defaultInstance
in class StoreAppender
bean
- The beanjava.lang.ReflectiveOperationException
- Error creating a new instanceStoreAppender.defaultInstance(java.lang.Object)
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.