|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The BootstrapEnvironment is the connection between the real environment
(servlet, cli etc.) and the Cocoon core. The core uses this object to
access information from the real environment and to pass several objects
back.
A BootstrapEnvironment can be used to create a new Cocoon system using
the CoreUtil
.
Nested Class Summary | |
static class |
BootstrapEnvironment.LogLevel
Convenience class to define some constants for log levels. |
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 |
setLogger(Logger rootLogger)
Pass the root logger back to the environment. |
Method Detail |
public Logger getBootstrapLogger(BootstrapEnvironment.LogLevel logLevel)
logLevel
- The log level to use according to the Logger
interface.public void log(String message)
message
- A message.public void log(String message, Throwable error)
message
- A message.error
- An error.public void setLogger(Logger rootLogger)
rootLogger
- The root logger.public void configure(MutableSettings settings)
settings
- The settings for Cocoon.public void configureLoggingContext(DefaultContext context)
context
- The context passed to the logging system.public void configure(DefaultContext context)
context
- The context passed to all Avalon based components that are context aware.public Context getEnvironmentContext()
public String getContextURL()
public File getContextForWriting()
public URL getConfigFile(String configFileName) throws Exception
configFileName
- The file location for the cocoon.xconf
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |