Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.apache.tapestry5.ioc.annotations
Annotation Type Marker

    @Target(value={TYPE,METHOD})
    @Retention(value=RUNTIME)
    @Documented
    @UseWith(value={SERVICE,MODULE})
    public @interface Marker

Used to define one or more marker annotations for a service implementation. This allows for injection based on the combination of type and marker interface. These marker interfaces should not have any values. The mere presence of the marker annotation is all that is needed.

When applied to a module class, this sets the default markers for all services within the module. Markers are additive, so a Marker annotation on the implementation class and/or specified with `ServiceBindingOptions.withMarker(Class[])` will accumulate; a service may have any number of markers. Generally one or two is enough.

See Also:
  `ObjectLocator.getService(Class, Class[])`

Required Element Summary
`java.lang.Class[]` | `value` The type of annotation (which will be present at the injection point).

Element Detail

### value

    public abstract java.lang.Class[] value

  The type of annotation (which will be present at the injection point).

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2003-2012 The Apache Software Foundation.