|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Retention(value=RUNTIME)
@Target(value={TYPE,ANNOTATION_TYPE})
public @interface ContractMarker annotation to allow implementations to be discovered from the contract they implement.
There are two usages of this annotation.
This annotation can be placed on interfaces and abstract classes T,
and derived classes that are assignable to T with Service
annotation can be looked up by using Locator.byType(Class)
(and its family of methods.)
This annotation can be used as a meta-annotation on another annotation (let's say X),
along with Index annotation on one of its property. What happens
in this case is that when X is placed on classes, those classes will be
marked as implementations of the contract.
Index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||