com.sun.xml.ws.api.server.InstanceResolverAnnotation Maven / Gradle / Ivy
package com.sun.xml.ws.api.server;
import com.sun.xml.ws.developer.Stateful;
import java.lang.annotation.Documented;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;
/**
* Meta annotation for selecting instance resolver.
*
*
* When service class is annotated with an annotation that has
* {@link InstanceResolverAnnotation} as meta annotation, the JAX-WS RI
* runtime will use the instance resolver class specified on {@link #value()}.
*
*
* The {@link InstanceResolver} class must have the public constructor that
* takes {@link Class}, which represents the type of the service.
*
*
* See {@link Stateful} for a real example. This annotation is only for
* advanced users of the JAX-WS RI.
*
* @since JAX-WS 2.1
* @see Stateful
* @author Kohsuke Kawaguchi
*/
@Target(ANNOTATION_TYPE)
@Retention(RUNTIME)
@Documented
public @interface InstanceResolverAnnotation {
Class value();
}