com.sun.jersey.spi.container.servlet
Annotation Type PerSession


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@ResourceComponentProviderFactoryClass(value=PerSessionFactory.class)
public @interface PerSession

Used to annotate resource classes that require a new instance for each HTTP servlet session. Resource class instances are stored on the session attributes using the resource class name as the key.



Copyright © 2011 Sun Microsystems, Inc. All Rights Reserved.