public class StoreContextAppender extends StoreAppender
| Constructor and Description |
|---|
StoreContextAppender() |
| Modifier and Type | Method and Description |
|---|---|
Object |
defaultInstance(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 File |
getAppBase(StandardHost host) |
protected String |
getDefaultWorkDir(StandardContext context)
Make default Work Dir.
|
protected File |
getDocBase(StandardContext context,
File appBase) |
boolean |
isPrintValue(Object bean,
Object bean2,
String attrName,
StoreDescription desc)
Print Context Values.
|
protected void |
printAttribute(PrintWriter writer,
int indent,
Object bean,
StoreDescription desc,
String attributeName,
Object bean2,
Object value)
Store the specified of the specified JavaBean.
|
checkAttribute, convertStr, isPersistable, printAttributes, printAttributes, printCloseTag, printIndent, printOpenTag, printTag, printTagArray, printTagContent, printTagValueArray, printValueprotected void printAttribute(PrintWriter writer, int indent, Object bean, StoreDescription desc, String attributeName, Object bean2, Object value)
docBase.printAttribute in class StoreAppenderwriter - 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(Object bean, Object bean2, String attrName, StoreDescription desc)
isPrintValue in class StoreAppenderbean - original 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 File getAppBase(StandardHost host)
protected File getDocBase(StandardContext context, File appBase)
protected String getDefaultWorkDir(StandardContext context)
context - The contextpublic Object defaultInstance(Object bean) throws ReflectiveOperationException
defaultInstance in class StoreAppenderbean - The beanReflectiveOperationException - Error creating a new instanceStoreAppender.defaultInstance(java.lang.Object)Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.