org.apache.tapestry5.ioc.annotations
Annotation Type Match


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
@UseWith(value=SERVICE_DECORATOR)
public @interface Match

Optional, but typically used, annotation for service decorator methods, used to define which services the decorator applies to. This annotation defines a number of patterns that allow services across multiple modules to be selected. A decorator is applied to a service if any of its patterns match the service.

TODO: Describe pattern glob-match syntax

When the Match annotation is not supplied, then the decorator only applies to a single service: the service whose id matches the decorators id; that is, method decorateMyService() would decorate only the service provided by the buildMyService() method, within the same module.


Required Element Summary
 String[] value
          Defines a list of patterns matched against potential service ids to identify to which services the decorator applies.
 

Element Detail

value

public abstract String[] value
Defines a list of patterns matched against potential service ids to identify to which services the decorator applies. A decorator is applied if any of the patterns match.



Copyright © 2003-2012 The Apache Software Foundation.