org.apache.tapestry
Interface IEngine

All Superinterfaces:
WebRequestServicer
All Known Implementing Classes:
AbstractEngine, BaseEngine, WMLEngine

public interface IEngine
extends WebRequestServicer

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.

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).

Author:
Howard Lewis Ship

Method Summary
 Infrastructure getInfrastructure()
          Returns the Infrastructure object, a central registry of key HiveMind services used by Tapestry.
 Locale getLocale()
          Returns the locale for the engine.
 String getOutputEncoding()
          Returns the encoding to be used to generate the responses and accept the requests.
 void setLocale(Locale value)
          Changes the engine's locale.
 
Methods inherited from interface org.apache.tapestry.services.WebRequestServicer
service
 

Method Detail

getLocale

Locale getLocale()
Returns the locale for the engine. This locale is used when selecting templates and assets.


setLocale

void setLocale(Locale value)
Changes the engine's locale. Any subsequently loaded pages will be in the new locale (though pages already loaded stay in the old locale). Generally, you should render a new page after changing the locale, to show that the locale has changed.


getOutputEncoding

String getOutputEncoding()
Returns the encoding to be used to generate the responses and accept the requests.

Since:
3.0

getInfrastructure

Infrastructure getInfrastructure()
Returns the Infrastructure object, a central registry of key HiveMind services used by Tapestry.

Since:
4.0


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.