|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chorem.pollen.ui.services.AppModule
public class AppModule
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.
| 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. |
org.apache.tapestry5.services.RequestFilter |
buildTimingFilter(org.slf4j.Logger log)
This is a service definition, the service will be named "TimingFilter". |
static void |
contributeApplicationDefaults(org.apache.tapestry5.ioc.MappedConfiguration<java.lang.String,java.lang.String> configuration)
|
void |
contributeRequestHandler(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.RequestFilter> configuration,
org.apache.tapestry5.services.RequestFilter filter)
This is a contribution to the RequestHandler service 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 |
|---|
public AppModule()
| Method Detail |
|---|
public static void bind(org.apache.tapestry5.ioc.ServiceBinder binder)
public static void contributeApplicationDefaults(org.apache.tapestry5.ioc.MappedConfiguration<java.lang.String,java.lang.String> configuration)
public org.apache.tapestry5.services.RequestFilter buildTimingFilter(org.slf4j.Logger log)
Service builder methods are useful when the implementation is inline as an inner class (as here) or require some other kind of special initialization. In most cases, use the static bind() method instead.
If this method was named "build", then the service id would be taken from the service interface and would be "RequestFilter". Since Tapestry already defines a service named "RequestFilter" we use an explicit service id that we can reference inside the contribution method.
@EagerLoad
public org.apache.tapestry5.ioc.services.RegistryShutdownListener buildPollenShutdown(@InjectService(value="RegistryShutdownHub")
org.apache.tapestry5.ioc.services.RegistryShutdownHub hub)
public static Configuration buildConfiguration()
@EagerLoad
public static BackgroundWorker buildBackgroundWorker(org.apache.tapestry5.services.ComponentSource componentSource,
Configuration configuration,
ServicePoll servicePoll)
public PropertiesFileSymbolProvider buildConfigPropertiesFileSymbolProvider(org.slf4j.Logger logger)
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)
public void contributeRequestHandler(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.RequestFilter> configuration,
@Local
org.apache.tapestry5.services.RequestFilter filter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||