org.apache.shale.tiger.managed
Annotation Type Bean


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Bean

Class-level annotation indicating that the decorated class should be treated as a JavaServer Faces "managed bean" definition for the bean name specified by the "name" attribute. Managed beans defined through annotations are orthogonal to those defined via the standard configuration files (although this might change in the future to support an overrides mechanism).

ASSERTION - The annotated class has a public, zero-args constructor for dynamic instantiation.

ASSERTION - The value specified for the name attribute is unique across all classes visible (at runtime) in the same application unit.


Required Element Summary
 String name
          The managed bean name used to cause managed creation of instances of this class.
 
Optional Element Summary
 Scope scope
          The scope (if any) into which newly created beans should be stored.
 

Element Detail

name

public abstract String name

The managed bean name used to cause managed creation of instances of this class.

scope

public abstract Scope scope

The scope (if any) into which newly created beans should be stored.

Default:
NONE


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