org.apache.felix.ipojo.annotations

## Annotation Type Controller

    @Target(value={FIELD,ANNOTATION_TYPE})
    public @interface Controller

This annotation declares a lifecycle controller.

          @Component
         public class MyComponent {
             // ...
              @Controller
             private boolean controller;

             public void aMethod() {
                 // Invalidate the instance
                 controller = false;
             }

             public void anotherMethod() {
                 // Validate the instance again
                 controller = true;
             }
         }

Author:
  Felix Project Team