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.
|
convertStr, isPersistable, printAttributes, printAttributes, printCloseTag, printIndent, printOpenTag, printTag, printTagArray, printTagContent, printTagValueArray, printValue
protected void printAttribute(PrintWriter writer, int indent, Object bean, StoreDescription desc, String attributeName, Object bean2, Object value)
docBase
.printAttribute
in class StoreAppender
writer
- PrintWriter to which we are storingindent
- Indentation levelbean
- The current beandesc
- RegistryDescrpitor 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 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 File getAppBase(StandardHost host)
protected File getDocBase(StandardContext context, File appBase)
protected String getDefaultWorkDir(StandardContext context)
context
- The contextpublic Object defaultInstance(Object bean) throws InstantiationException, IllegalAccessException
defaultInstance
in class StoreAppender
bean
- The beanInstantiationException
- Error creating a new instanceIllegalAccessException
- Another error occurredStoreAppender.defaultInstance(java.lang.Object)
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.