org.apache.tapestry.services
Interface Infrastructure

All Known Implementing Classes:
InfrastructureImpl

public interface Infrastructure

Tapestry infrastructure ... key services required by the IEngine instance.

Since:
3.1
Author:
Howard Lewis Ship

Method Summary
 java.lang.String getApplicationId()
          Returns the application's id; a unique name that is incorporated into various session attribute keys and into certain paths when searching for resources.
 IPropertySource getApplicationPropertySource()
          Returns an IPropertySourceconfigured to search the application specification, etc.
 IApplicationSpecification getApplicationSpecification()
          Returns the IApplicationSpecificationfor the current application.
 ApplicationStateManager getApplicationStateManager()
          Accesses application state objects (Visit and Global from Tapestry 3.0, but now more can be created).
 org.apache.hivemind.ClassResolver getClassResolver()
          Returns the ClassResolver used by the Tapestry HiveMind module, which should be sufficient for use throughout the application.
 ComponentMessagesSource getComponentMessagesSource()
          Returns the source of component message bundles.
 ComponentPropertySource getComponentPropertySource()
          Returns an object used to access component meta-data properties.
 java.lang.String getContextPath()
          Returns the context path, which identifies the application within the application server.
 org.apache.hivemind.Resource getContextRoot()
          Returns the root context resource, which is the starting point when looking for resources within the application.
 DataSqueezer getDataSqueezer()
          The DataSqueezer, used when constructing and decoding values stored in URLs (as query parameters or hidden form fields).
 IPropertySource getGlobalPropertySource()
          Returns an IPropertySource configured to search the servlet, servlet context, and factory defaults.
 LinkFactory getLinkFactory()
          Constructs ILinkinstances for IEngineServices.
 ObjectPool getObjectPool()
          Returns a generic, shared ObjectPool instance.
 IPageSource getPageSource()
          Returns the source for pages.
 javax.servlet.http.HttpServletRequest getRequest()
          Returns the request for the current request.
 RequestCycleFactory getRequestCycleFactory()
          Used by the IEngineto create instances of IRequestCycle.
 RequestExceptionReporter getRequestExceptionReporter()
          Service used to report exceptions to the console.
 ResetEventCoordinator getResetEventCoordinator()
          Returns the coordinator to be notified of reset events (which will, in turn, notify other services).
 javax.servlet.http.HttpServletResponse getResponse()
          Returns the response for the current request.
 ResponseRenderer getResponseRenderer()
          Renders the active page as the response.
 IScriptSource getScriptSource()
          The source for read-to-execute versions of Tapestry script templates.
 ServiceMap getServiceMap()
          The object from which engine services are obtained.
 ISpecificationSource getSpecificationSource()
          Returns the source of all application, page, component and library specifications.
 TemplateSource getTemplateSource()
          Returns component or page template contents.
 

Method Detail

getApplicationSpecification

public IApplicationSpecification getApplicationSpecification()
Returns the IApplicationSpecificationfor the current application.


getApplicationPropertySource

public IPropertySource getApplicationPropertySource()
Returns an IPropertySourceconfigured to search the application specification, etc. See tapestry.ApplicationPropertySource.


getGlobalPropertySource

public IPropertySource getGlobalPropertySource()
Returns an IPropertySource configured to search the servlet, servlet context, and factory defaults.


getResetEventCoordinator

public ResetEventCoordinator getResetEventCoordinator()
Returns the coordinator to be notified of reset events (which will, in turn, notify other services).


getComponentMessagesSource

public ComponentMessagesSource getComponentMessagesSource()
Returns the source of component message bundles.


getTemplateSource

public TemplateSource getTemplateSource()
Returns component or page template contents.


getSpecificationSource

public ISpecificationSource getSpecificationSource()
Returns the source of all application, page, component and library specifications.


getObjectPool

public ObjectPool getObjectPool()
Returns a generic, shared ObjectPool instance.


getPageSource

public IPageSource getPageSource()
Returns the source for pages. The source is a cache of pages, but also can create new instances when needed.


getClassResolver

public org.apache.hivemind.ClassResolver getClassResolver()
Returns the ClassResolver used by the Tapestry HiveMind module, which should be sufficient for use throughout the application.


getDataSqueezer

public DataSqueezer getDataSqueezer()
The DataSqueezer, used when constructing and decoding values stored in URLs (as query parameters or hidden form fields).


getScriptSource

public IScriptSource getScriptSource()
The source for read-to-execute versions of Tapestry script templates.


getServiceMap

public ServiceMap getServiceMap()
The object from which engine services are obtained.


getRequestExceptionReporter

public RequestExceptionReporter getRequestExceptionReporter()
Service used to report exceptions to the console.


getResponseRenderer

public ResponseRenderer getResponseRenderer()
Renders the active page as the response.


getLinkFactory

public LinkFactory getLinkFactory()
Constructs ILinkinstances for IEngineServices.


getRequestCycleFactory

public RequestCycleFactory getRequestCycleFactory()
Used by the IEngineto create instances of IRequestCycle.


getApplicationStateManager

public ApplicationStateManager getApplicationStateManager()
Accesses application state objects (Visit and Global from Tapestry 3.0, but now more can be created).


getRequest

public javax.servlet.http.HttpServletRequest getRequest()
Returns the request for the current request.


getResponse

public javax.servlet.http.HttpServletResponse getResponse()
Returns the response for the current request.


getContextPath

public java.lang.String getContextPath()
Returns the context path, which identifies the application within the application server. Context path should be used as a prefix for any URLs generated. The context path may be the empty string, and will not end in a slash (servlet paths should start with a slash).


getApplicationId

public java.lang.String getApplicationId()
Returns the application's id; a unique name that is incorporated into various session attribute keys and into certain paths when searching for resources. For a servlet-based Tapestry application, the id is the name of the servlet.


getContextRoot

public org.apache.hivemind.Resource getContextRoot()
Returns the root context resource, which is the starting point when looking for resources within the application.


getComponentPropertySource

public ComponentPropertySource getComponentPropertySource()
Returns an object used to access component meta-data properties.