com.sun.jersey.spi.resource
Annotation Type ResourceFactory
@Target(value=ANNOTATION_TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface ResourceFactory
Specifies the provider that is used to obtain an
instance of the resource class. Omission of this annotation
will result in the default ResourceProvider being used.
- See Also:
ResourceProvider
Required Element Summary |
java.lang.Class<? extends ResourceProvider> |
value
The class of the resource provider that is used to obtain an
instance of the resource class. |
value
public abstract java.lang.Class<? extends ResourceProvider> value
- The class of the resource provider that is used to obtain an
instance of the resource class. The specified class must implement
ResourceProvider
and be annotated with
@Provider
.
- Returns:
- the resource provider class.
Copyright © 2008 Sun Microsystems, Inc. All Rights Reserved.