Annotation Type Match


  • @Target(METHOD)
    @Retention(RUNTIME)
    @Documented
    @UseWith(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

      Required Elements 
      Modifier and Type Required Element Description
      String[] value
      Defines a list of patterns matched against potential service ids to identify to which services the decorator applies.
    • Element Detail

      • value

        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.