public interface IEngine extends WebRequestServicer
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 4.0, 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).
Modifier and Type | Method and Description |
---|---|
org.apache.hivemind.ClassResolver |
getClassResolver()
Deprecated.
To be removed in 4.1. This value can be injected (into services).
|
java.lang.Object |
getGlobal()
Deprecated.
To be removed in 4.1. Application state objects can now be injected.
|
Infrastructure |
getInfrastructure()
Returns the
Infrastructure object, a central
registry of key HiveMind services used by Tapestry. |
java.util.Locale |
getLocale()
Returns the locale for the engine.
|
java.lang.String |
getOutputEncoding()
Returns the encoding to be used to generate the responses and accept the requests.
|
IPropertySource |
getPropertySource()
Deprecated.
To be removed in 4.1. This value can now be injected as "infrastructure:applicationPropertySource".
|
IScriptSource |
getScriptSource()
Deprecated.
To be removed in 4.1. This value can now be injected as "infrastructure:scriptSource".
|
IEngineService |
getService(java.lang.String name)
Deprecated.
To be removed in 4.1. Engine services can now be injected.
|
IApplicationSpecification |
getSpecification()
Deprecated.
To be removed in 4.1. This value can be injected as "infrastructure:applicationSpecification".
|
ISpecificationSource |
getSpecificationSource()
Deprecated.
To be removed in 4.1. This value can be injected as "infrastructure:specificationSource".
|
java.lang.Object |
getVisit()
Deprecated.
To be removed in 4.1. Application state objects can now be injected.
|
java.lang.Object |
getVisit(IRequestCycle cycle)
Deprecated.
To be removed in 4.1. Application state objects can now be injected.
|
void |
setLocale(java.util.Locale value)
Changes the engine's locale.
|
void |
setVisit(java.lang.Object value)
Deprecated.
To be removed in 4.1. Application state objects can now be injected.
|
service
java.util.Locale getLocale()
void setLocale(java.util.Locale value)
IEngineService getService(java.lang.String name)
org.apache.tapestry.ApplicationRuntimeException
if the engine can't provide the named service.IApplicationSpecification getSpecification()
ISpecificationSource getSpecificationSource()
org.apache.tapestry.engine.AbstractEngine#createSpecificationSource(RequestContext)
org.apache.hivemind.ClassResolver getClassResolver()
java.lang.Object getVisit()
Returns the visit, if it exists, or null if it has not been created.
java.lang.Object getVisit(IRequestCycle cycle)
void setVisit(java.lang.Object value)
java.lang.Object getGlobal()
Returns the global object, if it exists, or null if not defined.
IScriptSource getScriptSource()
IScript
s. The source is shared
between all sessions.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)
java.lang.String getOutputEncoding()
Infrastructure getInfrastructure()
Infrastructure
object, a central
registry of key HiveMind services used by Tapestry.