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 services.
|Methods from java.lang.Object:|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait|
|Method from org.apache.tapestry5.tutorial.services.AppModule Detail:|
public RequestFilter buildTimingFilter(Logger logger)
This is a service definition, the service will be named TimingFilter. The interface, RequestFilter, is used
within the RequestHandler service pipeline, which is built from the RequestHandler service configuration.
Tapestry IoC is responsible for passing in an appropriate Log instance. Requests for static resources are handled
at a higher level, so this filter will only be invoked for Tapestry related requests.
public static void contributeApplicationDefaults(MappedConfiguration<String, String> configuration)
public void contributeRequestHandler(OrderedConfiguration<RequestFilter> configuration,
This is a contribution to the RequestHandler service configuration. This is how we extend Tapestry using the
timing filter. A common use for this kind of filter is transaction management or security.