|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.bean.CocoonWrapper.WrapperBootstrapper
This class provides wrapper specific environment information
Nested Class Summary |
Nested classes inherited from class org.apache.cocoon.core.BootstrapEnvironment |
BootstrapEnvironment.LogLevel |
Field Summary | |
protected String |
bootstrapLogLevel
|
protected String |
cachingDirectory
|
protected String |
configFile
|
protected String |
contextDirectory
|
protected Context |
environmentContext
|
protected Logger |
environmentLogger
|
protected List |
loadClassList
|
Logger |
logger
|
protected String |
loggingConfiguration
|
protected String |
workingDirectory
|
Constructor Summary | |
CocoonWrapper.WrapperBootstrapper()
|
Method Summary | |
void |
configure(DefaultContext context)
This callback can be used by the environment to add environment specific information. |
void |
configure(MutableSettings settings)
This callback can be used by the environment to add environment specific settings. |
void |
configureLoggingContext(DefaultContext context)
This callback can be used by the environment to add environment specific information for the logging system. |
Logger |
getBootstrapLogger(BootstrapEnvironment.LogLevel logLevel)
Get the bootstrap logger. |
URL |
getConfigFile(String configFileName)
Set the ConfigFile for the Cocoon object. |
File |
getContextForWriting()
Returns a file to the application context. |
String |
getContextURL()
Returns the URL to the application context. |
Context |
getEnvironmentContext()
Create the context object of the environment. |
void |
log(String message)
Log a message during bootstrapping. |
void |
log(String message,
Throwable error)
Log a message during bootstrapping. |
void |
setBootstrapLogLevel(String bootstrapLogLevel)
|
void |
setCachingDirectory(File dir)
|
void |
setConfigFile(File file)
|
void |
setContextDirectory(String dir)
|
void |
setEnvironmentContext(Context context)
|
void |
setEnvironmentLogger(Logger log)
|
void |
setLoadClassList(List l)
|
void |
setLogger(Logger rootLogger)
Pass the root logger back to the environment. |
void |
setLoggingConfiguration(String config)
|
void |
setWorkingDirectory(File dir)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Logger logger
protected Logger environmentLogger
protected Context environmentContext
protected String workingDirectory
protected String bootstrapLogLevel
protected String loggingConfiguration
protected String cachingDirectory
protected String contextDirectory
protected String configFile
protected List loadClassList
Constructor Detail |
public CocoonWrapper.WrapperBootstrapper()
Method Detail |
public Logger getBootstrapLogger(BootstrapEnvironment.LogLevel logLevel)
BootstrapEnvironment
getBootstrapLogger
in interface BootstrapEnvironment
logLevel
- The log level to use according to the Logger
interface.BootstrapEnvironment.getBootstrapLogger(org.apache.cocoon.core.BootstrapEnvironment.LogLevel)
public void setEnvironmentLogger(Logger log)
public void setEnvironmentContext(Context context)
public void setWorkingDirectory(File dir)
public void setBootstrapLogLevel(String bootstrapLogLevel)
public void setLoggingConfiguration(String config)
public void setCachingDirectory(File dir)
public void setContextDirectory(String dir)
public void setConfigFile(File file)
public void setLoadClassList(List l)
public void configure(DefaultContext context)
BootstrapEnvironment
configure
in interface BootstrapEnvironment
context
- The context passed to all Avalon based components that are context aware.BootstrapEnvironment.configure(org.apache.avalon.framework.context.DefaultContext)
public void configure(MutableSettings settings)
BootstrapEnvironment
configure
in interface BootstrapEnvironment
settings
- The settings for Cocoon.BootstrapEnvironment.configure(org.apache.cocoon.core.MutableSettings)
public void configureLoggingContext(DefaultContext context)
BootstrapEnvironment
configureLoggingContext
in interface BootstrapEnvironment
context
- The context passed to the logging system.BootstrapEnvironment.configureLoggingContext(org.apache.avalon.framework.context.DefaultContext)
public URL getConfigFile(String configFileName) throws Exception
BootstrapEnvironment
getConfigFile
in interface BootstrapEnvironment
configFileName
- The file location for the cocoon.xconf
Exception
BootstrapEnvironment.getConfigFile(java.lang.String)
public File getContextForWriting()
BootstrapEnvironment
getContextForWriting
in interface BootstrapEnvironment
BootstrapEnvironment.getContextForWriting()
public String getContextURL()
BootstrapEnvironment
getContextURL
in interface BootstrapEnvironment
BootstrapEnvironment.getContextURL()
public Context getEnvironmentContext()
BootstrapEnvironment
getEnvironmentContext
in interface BootstrapEnvironment
BootstrapEnvironment.getEnvironmentContext()
public void log(String message, Throwable error)
BootstrapEnvironment
log
in interface BootstrapEnvironment
message
- A message.error
- An error.BootstrapEnvironment.log(java.lang.String, java.lang.Throwable)
public void log(String message)
BootstrapEnvironment
log
in interface BootstrapEnvironment
message
- A message.BootstrapEnvironment.log(java.lang.String)
public void setLogger(Logger rootLogger)
BootstrapEnvironment
setLogger
in interface BootstrapEnvironment
rootLogger
- The root logger.BootstrapEnvironment.setLogger(org.apache.avalon.framework.logger.Logger)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |