Annotation Type InjectDependency


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface InjectDependency
    Annotation to tag a method in a server side event handler for dependency injection. The method being annotated MUST have a single parameter. The annotated method will be called when we have a value to set that matches the parameter type. The return type of the method MAY be void; we don't look at the return value. The method MUST NOT throw a checked exception. The method MAY be public, protected, package private or private. The method MUST NOT be static. The method MAY be final. If we cannot find a setter with a matching argument type, we will not set that value. Annotated setters with types that we do not support will not be called at all. Supported types include:
    • com.microfocus.zfe.haapi.Session
    • java.security.Principal