Package org.apache.shale.tiger.view

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.

See:
          Description

Annotation Types Summary
Activate Method-level annotation indicating that the decorated method should have the semantics of org.apache.shale.view.AbstractSessionBean.activate(), even if it is named differently.
Application Class-level annotation indicating that the decorated class should be treated semantically as if it extended org.apache.shale.view.AbstractApplicationBean, even if it does not.
Destroy Method-level annotation indicating that the decorated method should have the semantics of org.apache.shale.view.ViewController.destroy(), or one of the scoped data bean destroy() methods, even if it is named differently.
Init Method-level annotation indicating that the decorated method should have the semantics of org.apache.shale.view.ViewController.init(), or one of the scoped data bean init() methods, even if it is named differently.
Passivate Method-level annotation indicating that the decorated method should have the semantics of org.apache.shale.view.AbstractSessionBean.passivate(), even if it is named differently.
Preprocess Method-level annotation indicating that the decorated method should have the semantics of org.apache.shale.view.ViewController.preprocess(), even if it is named differently.
Prerender Method-level annotation indicating that the decorated method should have the semantics of org.apache.shale.view.ViewController.prerender(), even if it is named differently.
Request Class-level annotation indicating that the decorated class should be treated semantically as if it extended org.apache.shale.view.AbstractRequestBean, even if it does not.
Session Class-level annotation indicating that the decorated class should be treated semantically as if it extended org.apache.shale.view.AbstractSessionBean, even if it does not.
View Class-level annotation indicating that the decorated class should be treated semantically as if it implemented org.apache.shale.view.ViewController, even if it does not.
 

Package org.apache.shale.tiger.view Description

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


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.