org.chorem.pollen.ui.services
Class AppModule

java.lang.Object
  extended by org.chorem.pollen.ui.services.AppModule

public class AppModule
extends java.lang.Object

This module is automatically included as part of the Tapestry IoC Registry, it's a good place to configure and extend Tapestry, or to place your own service definitions.

Version:
$Id: AppModule.java 2799 2009-11-19 17:30:17Z echatellier $

Constructor Summary
AppModule()
           
 
Method Summary
static void bind(org.apache.tapestry5.ioc.ServiceBinder binder)
           
static BackgroundWorker buildBackgroundWorker(org.apache.tapestry5.services.ComponentSource componentSource, Configuration configuration, ServicePoll servicePoll)
          This is the BackgroundWorker service definition.
 PropertiesFileSymbolProvider buildConfigPropertiesFileSymbolProvider(org.slf4j.Logger logger)
          Make configuration from a Properties file available as symbols.
static Configuration buildConfiguration()
          This is the Configuration service definition.
 org.apache.tapestry5.ioc.services.RegistryShutdownListener buildPollenShutdown(org.apache.tapestry5.ioc.services.RegistryShutdownHub hub)
          This is the Shutdown service definition.
static void contributeApplicationDefaults(org.apache.tapestry5.ioc.MappedConfiguration<java.lang.String,java.lang.String> configuration)
           
static void contributeSymbolSource(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.ioc.services.SymbolProvider> configuration, org.apache.tapestry5.ioc.services.SymbolProvider configPropertiesFileSymbolProvider)
          Contribution SymbolSource service so that we can access our configuration symbols from our services, pages and components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppModule

public AppModule()
Method Detail

bind

public static void bind(org.apache.tapestry5.ioc.ServiceBinder binder)

contributeApplicationDefaults

public static void contributeApplicationDefaults(org.apache.tapestry5.ioc.MappedConfiguration<java.lang.String,java.lang.String> configuration)

buildPollenShutdown

@EagerLoad
public org.apache.tapestry5.ioc.services.RegistryShutdownListener buildPollenShutdown(@InjectService(value="RegistryShutdownHub")
                                                                                                org.apache.tapestry5.ioc.services.RegistryShutdownHub hub)
This is the Shutdown service definition. This service is used when the server shutdown. It detects the Tapestry registry shutdown.


buildConfiguration

public static Configuration buildConfiguration()
This is the Configuration service definition. It manage the file properties.


buildBackgroundWorker

@EagerLoad
public static BackgroundWorker buildBackgroundWorker(org.apache.tapestry5.services.ComponentSource componentSource,
                                                               Configuration configuration,
                                                               ServicePoll servicePoll)
This is the BackgroundWorker service definition. It build the service giving a Messages object for localization in the service.


buildConfigPropertiesFileSymbolProvider

public PropertiesFileSymbolProvider buildConfigPropertiesFileSymbolProvider(org.slf4j.Logger logger)
Make configuration from a Properties file available as symbols.


contributeSymbolSource

public static void contributeSymbolSource(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.ioc.services.SymbolProvider> configuration,
                                          @InjectService(value="ConfigPropertiesFileSymbolProvider")
                                          org.apache.tapestry5.ioc.services.SymbolProvider configPropertiesFileSymbolProvider)
Contribution SymbolSource service so that we can access our configuration symbols from our services, pages and components.



Copyright © 2009 CodeLutin. All Rights Reserved.