All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.shale.tiger.view.package.html Maven / Gradle / Ivy

The newest version!






This package contains Java SE 5 annotations that support the functionality of classes that implement org.apache.shale.view.ViewController to classes that choose not to implement this interface. Instead, any Java class can be annotated with the View annotation, indicating that instances of this class should receive ViewController type services. Within such a class, you can annotate public methods (which have a return type of void, and take zero parameters) with the following annotations. These methods will receive event callbacks that correspond to the similarly named method signature on the ViewController interface.

A typical bean class using these annotations might look like this:

    // Does not have to implement ViewController
    @View public class MyBean {

        // Name your init() method whatever you want
        @Init public void myInit() { ... }

    }

In addition, the class level annotations Application, Request, and Session mark beans that should be treated as if they extended AbstractApplicationBean, AbstractRequestBean, or AbstractSessionBean respectively, even if they do not. Such beans will have lifecycle event callbacks performed on methods that are marked with the corresponding method level annotation.

API STATUS: Experimental.

IMPLEMENTATION STATUS: Implemented, but only lightly tested.

@since 1.0.1




© 2015 - 2024 Weber Informatics LLC | Privacy Policy