|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@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 |
---|
public abstract String name
The managed bean name used to cause managed creation of instances of this class.
public abstract Scope scope
The scope (if any) into which newly created beans should be stored.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |