|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.core.osgi.OSGiBootstrapEnvironment
| Nested Class Summary | |
class |
OSGiBootstrapEnvironment.OSGiContext
|
| Nested classes inherited from class org.apache.cocoon.core.BootstrapEnvironment |
BootstrapEnvironment.LogLevel |
| Field Summary | |
Logger |
logger
|
| Constructor Summary | |
OSGiBootstrapEnvironment(org.osgi.framework.BundleContext bc)
|
|
| 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. |
InputStream |
getInputStream(String path)
Get the input stream from a resource at the given path. |
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 OSGiBootstrapEnvironment(org.osgi.framework.BundleContext bc)
throws Exception
| 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)
log in interface BootstrapEnvironmentmessage - A message.
public void log(String message,
Throwable error)
log in interface BootstrapEnvironmentmessage - A message.error - An error.public void setLogger(Logger rootLogger)
setLogger in interface BootstrapEnvironmentrootLogger - The root logger.public InputStream getInputStream(String path)
public void configure(MutableSettings settings)
BootstrapEnvironment
configure in interface BootstrapEnvironmentsettings - The settings for Cocoon.public void configureLoggingContext(DefaultContext context)
BootstrapEnvironment
configureLoggingContext in interface BootstrapEnvironmentcontext - The context passed to the logging system.public void configure(DefaultContext context)
BootstrapEnvironment
configure in interface BootstrapEnvironmentcontext - The context passed to all Avalon based components that are context aware.public Context getEnvironmentContext()
BootstrapEnvironment
getEnvironmentContext in interface BootstrapEnvironmentpublic String getContextURL()
getContextURL in interface BootstrapEnvironmentpublic File getContextForWriting()
getContextForWriting in interface BootstrapEnvironment
public URL getConfigFile(String configFileName)
throws Exception
getConfigFile in interface BootstrapEnvironmentconfigFileName - The file location for the cocoon.xconf
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||