org.glassfish.jersey.spi
Annotation Type Contract


@Retention(value=RUNTIME)
@Target(value=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 (miroslav.fuksa at oracle.com), Marek Potociar (marek.potociar at oracle.com)



Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.