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, each custom (i.e. not JAX-RS or Jersey) provider contract that must be annotated with this annotation otherwise concrete service classes implementing the provider contract would not be recognized and treated by Jersey as provider services.

Author:
Miroslav Fuksa (miroslav.fuksa at oracle.com), Marek Potociar (marek.potociar at oracle.com)



Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.