Annotation Interface Contract


@Retention(RUNTIME) @Target(TYPE) @Documented public @interface Contract
Used to annotate SPI provider contracts recognized by Jersey (in addition to the JAX-RS providers). All proprietary Jersey extension APIs are annotated with the @Contract annotation.

Similarly, any custom (i.e. not JAX-RS or Jersey) extension provider contract must be annotated with this annotation otherwise concrete service classes implementing the provider contract would not be recognized and treated as extension service provider by Jersey runtime.

Author:
Miroslav Fuksa, Marek Potociar