|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the core, session-persistant object used to run a Tapestry application for a single client (each client will have its own instance of the engine).
The engine exists to provide core services to the pages and components that make up the
application. The engine is a delegate to the ApplicationServlet
via the
service(RequestContext)
method.
Starting in release 3.1, the engine is kept around only for compatibility (with release 3.0). It's functions have been moved over into a collection of HiveMind services (or are in the process of doing so).
Method Summary | |
org.apache.hivemind.ClassResolver |
getClassResolver()
Deprecated. To be removed in 3.2. |
java.lang.Object |
getGlobal()
Deprecated. To be removed in 3.2. |
java.util.Locale |
getLocale()
Deprecated. Returns the locale for the engine. |
java.lang.String |
getOutputEncoding()
Deprecated. Returns the encoding to be used to generate the servlet responses and accept the servlet requests. |
IPropertySource |
getPropertySource()
Deprecated. To be removed in 3.2. |
IScriptSource |
getScriptSource()
Deprecated. To be removed in 3.2. |
IEngineService |
getService(java.lang.String name)
Deprecated. To be removed in 3.2. Engine service can now be injected. |
IApplicationSpecification |
getSpecification()
Deprecated. To be removed in 3.2. |
ISpecificationSource |
getSpecificationSource()
Deprecated. To be removed in 3.2. |
java.lang.Object |
getVisit()
Deprecated. To be removed in 3.2. |
java.lang.Object |
getVisit(IRequestCycle cycle)
Deprecated. To be removed in 3.2. |
boolean |
service(RequestContext context)
Deprecated. Method invoked from the ApplicationServlet to perform processing
of the request. |
void |
setLocale(java.util.Locale value)
Deprecated. Changes the engine's locale. |
void |
setVisit(java.lang.Object value)
Deprecated. Allows the visit object to be removed; typically done when "shutting down" a user's session (by setting the visit to null). |
Method Detail |
public java.util.Locale getLocale()
public void setLocale(java.util.Locale value)
public IEngineService getService(java.lang.String name)
org.apache.tapestry.ApplicationRuntimeException
if the engine can't provide the named service.
public IApplicationSpecification getSpecification()
public ISpecificationSource getSpecificationSource()
org.apache.tapestry.engine.AbstractEngine#createSpecificationSource(RequestContext)
public boolean service(RequestContext context) throws javax.servlet.ServletException, java.io.IOException
ApplicationServlet
to perform processing
of the request. In release 3.0, this has become more of a dirty flag, indicating if any state
stored by the engine instance itself has changed.
javax.servlet.ServletException
java.io.IOException
public org.apache.hivemind.ClassResolver getClassResolver()
public java.lang.Object getVisit()
Returns the visit, if it exists, or null if it has not been created.
public java.lang.Object getVisit(IRequestCycle cycle)
public void setVisit(java.lang.Object value)
public java.lang.Object getGlobal()
Returns the global object, if it exists, or null if not defined.
public IScriptSource getScriptSource()
IScript
s. The source is shared
between all sessions.
public IPropertySource getPropertySource()
IPropertySource
that should be used to obtain
configuration data. The returned source represents a search path that includes (at a
minimum):
ApplicationSpecification
web.xml
deployment
descriptor)
web.xml
)
-D
JVM command line parameter)
org.apache.tapestry.engine.AbstractEngine#createPropertySource(RequestContext)
public java.lang.String getOutputEncoding()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |