org.apache.tapestry.services
Interface ApplicationGlobals

All Known Implementing Classes:
ApplicationGlobalsImpl

public interface ApplicationGlobals

A "global" holder for various services and configurations. In many cases, these values end up as properties of the Infrastructure . The servlet and portlet implementations differentiate themselves by storing different values into these properties.

Since:
4.0
Author:
Howard Lewis Ship

Method Summary
 WebActivator getActivator()
           
 String getActivatorName()
           
 List getFactoryServices()
          Returns the factory default services as a List of IEngineService.
 ServletContext getServletContext()
          Returns the previously stored context.
 IApplicationSpecification getSpecification()
           
 WebContext getWebContext()
          Returns the previously stored context.
 void storeActivator(WebActivator activator)
          Invoked by the (indirectly) by the servlet at init(), after parsing the application specification.
 void storeFactoryServices(List factoryServices)
          Stores the default set of engine service definitions.
 void storeServletContext(ServletContext context)
          Invoked (indirectly) by the servlet at init().
 void storeSpecification(IApplicationSpecification applicationSpecification)
           
 void storeWebContext(WebContext context)
          Invoked (indirectly) by the servlet at init().
 

Method Detail

storeActivator

void storeActivator(WebActivator activator)
Invoked by the (indirectly) by the servlet at init(), after parsing the application specification.


storeSpecification

void storeSpecification(IApplicationSpecification applicationSpecification)

storeServletContext

void storeServletContext(ServletContext context)
Invoked (indirectly) by the servlet at init().


storeWebContext

void storeWebContext(WebContext context)
Invoked (indirectly) by the servlet at init().


getWebContext

WebContext getWebContext()
Returns the previously stored context.

See Also:
.

getServletContext

ServletContext getServletContext()
Returns the previously stored context.

See Also:
storeServletContext(ServletContext)

getActivator

WebActivator getActivator()

getSpecification

IApplicationSpecification getSpecification()

getActivatorName

String getActivatorName()

storeFactoryServices

void storeFactoryServices(List factoryServices)
Stores the default set of engine service definitions. Application services override factory services with the same IEngineService.getName() .

Parameters:
factoryServices - List of IEngineService.

getFactoryServices

List getFactoryServices()
Returns the factory default services as a List of IEngineService.



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