|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.portlet.CocoonPortlet.PortletBootstrapEnvironment
| Nested Class Summary |
| Nested classes inherited from class org.apache.cocoon.core.BootstrapEnvironment |
BootstrapEnvironment.LogLevel |
| Field Summary | |
Logger |
logger
|
| Constructor Summary | |
CocoonPortlet.PortletBootstrapEnvironment(javax.portlet.PortletConfig config,
String writeablePath,
String path)
|
|
| 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. |
String |
getClassPath(Settings settings)
This builds the important ClassPath used by this Servlet. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public Logger logger
| Constructor Detail |
public CocoonPortlet.PortletBootstrapEnvironment(javax.portlet.PortletConfig config,
String writeablePath,
String path)
| Method Detail |
public Logger getBootstrapLogger(BootstrapEnvironment.LogLevel logLevel)
BootstrapEnvironment
getBootstrapLogger in interface BootstrapEnvironmentlogLevel - The log level to use according to the Logger interface.BootstrapEnvironment.getBootstrapLogger(org.apache.cocoon.core.BootstrapEnvironment.LogLevel)public void log(String message)
BootstrapEnvironment
log in interface BootstrapEnvironmentmessage - A message.BootstrapEnvironment.log(java.lang.String)
public void log(String message,
Throwable error)
BootstrapEnvironment
log in interface BootstrapEnvironmentmessage - A message.error - An error.BootstrapEnvironment.log(java.lang.String, java.lang.Throwable)public void setLogger(Logger rootLogger)
BootstrapEnvironment
setLogger in interface BootstrapEnvironmentrootLogger - The root logger.BootstrapEnvironment.setLogger(org.apache.avalon.framework.logger.Logger)public void configure(MutableSettings settings)
BootstrapEnvironment
configure in interface BootstrapEnvironmentsettings - The settings for Cocoon.BootstrapEnvironment.configure(org.apache.cocoon.core.MutableSettings)public Context getEnvironmentContext()
BootstrapEnvironment
getEnvironmentContext in interface BootstrapEnvironmentBootstrapEnvironment.getEnvironmentContext()public String getContextURL()
BootstrapEnvironment
getContextURL in interface BootstrapEnvironmentBootstrapEnvironment.getContextURL()public File getContextForWriting()
BootstrapEnvironment
getContextForWriting in interface BootstrapEnvironmentBootstrapEnvironment.getContextForWriting()public void configureLoggingContext(DefaultContext context)
BootstrapEnvironment
configureLoggingContext in interface BootstrapEnvironmentcontext - The context passed to the logging system.BootstrapEnvironment.configureLoggingContext(org.apache.avalon.framework.context.DefaultContext)public void configure(DefaultContext context)
BootstrapEnvironment
configure in interface BootstrapEnvironmentcontext - The context passed to all Avalon based components that are context aware.BootstrapEnvironment.configure(org.apache.avalon.framework.context.DefaultContext)
public URL getConfigFile(String configFileName)
throws Exception
BootstrapEnvironment
getConfigFile in interface BootstrapEnvironmentconfigFileName - The file location for the cocoon.xconf
ExceptionBootstrapEnvironment.getConfigFile(java.lang.String)public String getClassPath(Settings settings)
ServletContext's getRealPath method
to get the Servlet 2.2 identified classes and lib directories.
It iterates in alphabetical order through every file in the
lib directory and adds it to the classpath.
Also, we add the files to the ClassLoader for the Cocoon system.
In order to protect ourselves from skitzofrantic classloaders,
we need to work with a known one.
We need to get this to work properly when Cocoon is in a war.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||