Top Description Methods
org.jvnet.hk2.annotations

public @Interface ContractsProvided

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:TYPE
Static Imports
java.lang.annotation.ElementType.TYPE, .RetentionPolicy.RUNTIME

An explicit list of contracts provided. Overrides any other contract metadata on subclasses or interfaces.

There are times when a service would like to either restrict Contracts that it provides, or would like to add subclasses or interfaces that are not naturally marked Contract to be contracts that it provides. In that case it should use ContractsProvided, which allows the service to explicitly say the contracts that it should provide.

Author
jwells

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]

Returns:

The set of contracts that should be provided by this service
value
()

The set of contracts that should be explicitly provided by this service.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Class<?>[] value()

The set of contracts that should be explicitly provided by this service.

Returns:Class<?>[]

The set of contracts that should be provided by this service