Annotation Type Service


  • @Target({TYPE,FIELD})
    @Retention(RUNTIME)
    public @interface Service
    Mark a class as a service that can be injected into another service or a component via it constructor. IMPORTANT :: The class annotated with @Service need to be public.