Annotation Type Service


  • @Target(TYPE)
    @Retention(RUNTIME)
    @Documented
    @ApplicationScoped
    @Stereotype
    public @interface Service
    This annotation is to tag an object as being a business service. A business service is an object whose goal is to provide transverse functionalities within which can be implied one or more types of business objects. Beans annotated with this annotation are marked to be managed by the underlying IoC container and to be bound to the scope of the application execution. If the bean declare another life-cycle scope, then the new scope overrides the default one. 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 annotation to those specific at this IoC implementation without impacting the annotated IoC managed beans.