org.apache.tapestry.services.impl
Class ApplicationGlobalsImpl

java.lang.Object
  extended by org.apache.tapestry.services.impl.ApplicationGlobalsImpl
All Implemented Interfaces:
ApplicationGlobals

public class ApplicationGlobalsImpl
extends Object
implements ApplicationGlobals

Implementation of ApplicationGlobals.

Since:
4.0
Author:
Howard Lewis Ship

Constructor Summary
ApplicationGlobalsImpl()
           
 
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().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationGlobalsImpl

public ApplicationGlobalsImpl()
Method Detail

storeActivator

public void storeActivator(WebActivator activator)
Description copied from interface: ApplicationGlobals
Invoked by the (indirectly) by the servlet at init(), after parsing the application specification.

Specified by:
storeActivator in interface ApplicationGlobals

storeSpecification

public void storeSpecification(IApplicationSpecification applicationSpecification)
Specified by:
storeSpecification in interface ApplicationGlobals

getActivator

public WebActivator getActivator()
Specified by:
getActivator in interface ApplicationGlobals

getSpecification

public IApplicationSpecification getSpecification()
Specified by:
getSpecification in interface ApplicationGlobals

getActivatorName

public String getActivatorName()
Specified by:
getActivatorName in interface ApplicationGlobals

getWebContext

public WebContext getWebContext()
Description copied from interface: ApplicationGlobals
Returns the previously stored context.

Specified by:
getWebContext in interface ApplicationGlobals
See Also:
.

storeWebContext

public void storeWebContext(WebContext context)
Description copied from interface: ApplicationGlobals
Invoked (indirectly) by the servlet at init().

Specified by:
storeWebContext in interface ApplicationGlobals

storeFactoryServices

public void storeFactoryServices(List factoryServices)
Description copied from interface: ApplicationGlobals
Stores the default set of engine service definitions. Application services override factory services with the same IEngineService.getName() .

Specified by:
storeFactoryServices in interface ApplicationGlobals
Parameters:
factoryServices - List of IEngineService.

getFactoryServices

public List getFactoryServices()
Description copied from interface: ApplicationGlobals
Returns the factory default services as a List of IEngineService.

Specified by:
getFactoryServices in interface ApplicationGlobals

getServletContext

public ServletContext getServletContext()
Description copied from interface: ApplicationGlobals
Returns the previously stored context.

Specified by:
getServletContext in interface ApplicationGlobals
See Also:
ApplicationGlobals.storeServletContext(ServletContext)

storeServletContext

public void storeServletContext(ServletContext context)
Description copied from interface: ApplicationGlobals
Invoked (indirectly) by the servlet at init().

Specified by:
storeServletContext in interface ApplicationGlobals


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