|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.engine.JetspeedEngine
AbstractEngine
Field Summary | |
private String |
applicationRoot
|
private org.apache.jetspeed.components.ComponentManager |
componentManager
|
private javax.servlet.ServletConfig |
config
|
private org.apache.commons.configuration.Configuration |
configuration
|
private static org.apache.commons.logging.Log |
console
|
private PortalContext |
context
|
protected String |
defaultPipelineName
|
protected static org.apache.commons.logging.Log |
log
|
Fields inherited from interface org.apache.jetspeed.engine.JetspeedEngineConstants |
APPLICATION_ROOT_DEFAULT, APPLICATION_ROOT_KEY, CONFIG_NAMESPACE, CONSOLE_LOGGER, DEFAULT_LOGGER, JETSPEED_CONFIGURATION_DEFAULT, JETSPEED_CONFIGURATION_KEY, JETSPEED_PROPERTIES_DEFAULT, JETSPEED_PROPERTIES_KEY, LOG4J_CONFIG_FILE, LOG4J_CONFIG_FILE_DEFAULT, LOGGING_ROOT, LOGGING_ROOT_DEFAULT, MAIL_SERVER_KEY, PIPELINE_CLASS, PIPELINE_DEFAULT, PIPELINE_DIRECTORY, PREFERENCES_FACTORY, PREFERENCES_FACTORY_DEFAULT, SCHEDULER_LOG_FACILITY, WEB_CONTEXT, WEBAPP_ROOT_KEY |
Constructor Summary | |
JetspeedEngine(org.apache.commons.configuration.Configuration configuration,
String applicationRoot,
javax.servlet.ServletConfig config,
org.apache.jetspeed.components.ComponentManager componentManager)
|
Method Summary | |
org.apache.jetspeed.components.ComponentManager |
getComponentManager()
|
org.apache.pluto.services.ContainerService |
getContainerService(Class service)
getContainerService |
PortalContext |
getContext()
Returns the context associated with this engine. |
org.apache.jetspeed.request.RequestContext |
getCurrentRequestContext()
Returns the the RequestContext associated with the current thread. |
org.apache.pluto.factory.Factory |
getFactory(Class theClass)
getFactory |
Pipeline |
getPipeline()
Gets the engine's request default pipeline. |
Pipeline |
getPipeline(String pipelineName)
Gets the specified engine's request pipeline. |
String |
getRealPath(String path)
Given a application relative path, returns the real path relative to the application root |
javax.servlet.ServletConfig |
getServletConfig()
Get the servlet configuration if this engine is running under a servlet container. |
void |
service(org.apache.jetspeed.request.RequestContext context)
Makes a service request to the engine. |
void |
shutdown()
Shuts down the Jetspeed engine and all associated services |
void |
start()
Initializes the engine with a commons configuration, starting all early initable services. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final PortalContext context
private final javax.servlet.ServletConfig config
private final org.apache.jetspeed.components.ComponentManager componentManager
private final org.apache.commons.configuration.Configuration configuration
private final String applicationRoot
protected static final org.apache.commons.logging.Log log
private static final org.apache.commons.logging.Log console
protected String defaultPipelineName
Constructor Detail |
public JetspeedEngine(org.apache.commons.configuration.Configuration configuration, String applicationRoot, javax.servlet.ServletConfig config, org.apache.jetspeed.components.ComponentManager componentManager)
Method Detail |
public void start() throws org.apache.jetspeed.exception.JetspeedException
start
in interface Engine
org.apache.jetspeed.exception.JetspeedException
- when the engine fails to initilializepublic javax.servlet.ServletConfig getServletConfig()
getServletConfig
in interface Engine
public void shutdown() throws org.apache.jetspeed.exception.JetspeedException
Engine
shutdown
in interface Engine
org.apache.jetspeed.exception.JetspeedException
- when the engine fails to shutdownpublic void service(org.apache.jetspeed.request.RequestContext context) throws org.apache.jetspeed.exception.JetspeedException
Engine
service
in interface Engine
context
- a RequestContext
with the state of the request.
org.apache.jetspeed.exception.JetspeedException
- when the engine fails to initilializepublic PortalContext getContext()
getContext
in interface Engine
EngineContext
associated with this enginepublic String getRealPath(String path)
getRealPath
in interface Engine
path
- The application relative resource
public Pipeline getPipeline(String pipelineName)
Engine
getPipeline
in interface Engine
public Pipeline getPipeline()
Engine
getPipeline
in interface Engine
public org.apache.jetspeed.request.RequestContext getCurrentRequestContext()
Engine
org.apache.jetspeed.Jetspeed
environment class.
getCurrentRequestContext
in interface Engine
Engine.getCurrentRequestContext()
public org.apache.jetspeed.components.ComponentManager getComponentManager()
getComponentManager
in interface Engine
public org.apache.pluto.factory.Factory getFactory(Class theClass)
getFactory
getFactory
in interface org.apache.pluto.services.factory.FactoryManagerService
theClass
-
FactoryManagerService.getFactory(java.lang.Class)
public org.apache.pluto.services.ContainerService getContainerService(Class service)
getContainerService
getContainerService
in interface org.apache.pluto.services.PortletContainerEnvironment
service
-
PortletContainerEnvironment.getContainerService(java.lang.Class)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |