|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.wao.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)
|
ServiceBoat |
buildServiceBoat(WaoManager manager)
|
ServiceContact |
buildServiceContact(WaoManager manager)
|
ServiceNews |
buildServiceNews(WaoManager manager)
|
ServiceReferential |
buildServiceReferential(WaoManager manager)
|
ServiceSampling |
buildServiceSampling(WaoManager manager)
|
ServiceSynthesis |
buildServiceSynthesis(WaoManager manager)
|
ServiceUser |
buildServiceUser(WaoManager manager)
|
org.apache.tapestry5.services.RequestFilter |
buildTimingFilter(org.slf4j.Logger log)
This is a service definition, the service will be named "TimingFilter". |
WaoManager |
buildWaoManager(org.apache.tapestry5.ioc.services.RegistryShutdownHub hub)
Use EagerLoad to build manager at startup. |
static void |
contributeApplicationDefaults(org.apache.tapestry5.ioc.MappedConfiguration<String,String> configuration)
|
void |
contributeApplicationStateManager(org.apache.tapestry5.ioc.MappedConfiguration<Class<?>,org.apache.tapestry5.services.ApplicationStateContribution> configuration)
Used to instanciate SessionState WaoUser when session expires. |
static void |
contributeRegistryStartup(org.apache.tapestry5.ioc.OrderedConfiguration<Runnable> configuration,
WaoManager manager,
ServiceUser serviceUser)
Execute WaoManager when registry startup. |
| 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)
@EagerLoad public WaoManager buildWaoManager(org.apache.tapestry5.ioc.services.RegistryShutdownHub hub)
hub - to register the manager in the tapestry registry shutdown
public static void contributeRegistryStartup(org.apache.tapestry5.ioc.OrderedConfiguration<Runnable> configuration,
WaoManager manager,
ServiceUser serviceUser)
buildWaoManager(org.apache.tapestry5.ioc.services.RegistryShutdownHub).
The serviceUser is needed to start the application.
configuration - to add the manager to registry startupmanager - to launch at startupserviceUser - needed for manager startpublic ServiceNews buildServiceNews(WaoManager manager)
public ServiceReferential buildServiceReferential(WaoManager manager)
public ServiceBoat buildServiceBoat(WaoManager manager)
public ServiceUser buildServiceUser(WaoManager manager)
public ServiceSampling buildServiceSampling(WaoManager manager)
public ServiceContact buildServiceContact(WaoManager manager)
public ServiceSynthesis buildServiceSynthesis(WaoManager manager)
public static void contributeApplicationDefaults(org.apache.tapestry5.ioc.MappedConfiguration<String,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.
log -
public void contributeApplicationStateManager(org.apache.tapestry5.ioc.MappedConfiguration<Class<?>,org.apache.tapestry5.services.ApplicationStateContribution> configuration)
configuration - to add the ApplicationStateCreator.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||