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


@Target(value={PARAMETER,FIELD,METHOD})
@Retention(value=RUNTIME)
@Documented
@UseWith(value=SERVICE)
public @interface Primary

Marker annotation used to denote a service that is the primary instance of some common interface. This is often used when a service is a chain of command or strategy-based and, therefore, many services will implement the same interface.



Copyright © 2003-2012 The Apache Software Foundation.