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


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@ResourceComponentProviderFactoryClass(value=com.sun.jersey.server.impl.container.servlet.PerSessionFactory.class)
public @interface PerSession

Used to annotate resource classes that require a new instance for each HTTP servlet session.

Resource classes must implement Serializable if state is to be persisted.



Copyright © 2011 Oracle Corporation. All Rights Reserved.