com.silverpeas.annotation
Annotation Type RequestScoped


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@Scope(value="request")
public @interface RequestScoped

This annotation is to tag an object as being request scoped, that is to say its lifecycle belongs to the life of an HTTP exchange (request/response). The annotation is an abstraction above the IoC container used by Silverpeas so that it is can possible to change the IoC container (Spring or CDI for example) by changing the wrapped annnotation to those specific at this IoC implementation without impacting the annotated IoC managed beans.



Copyright © 2016 Silverpeas. All Rights Reserved.