javax.annotation
Annotation Type Named


@Target(value={TYPE,METHOD,FIELD})
@Retention(value=RUNTIME)
@Documented
public @interface Named

Specifies the name of a bean.

Author:
Gavin King, Pete Muir

Optional Element Summary
 java.lang.String value
          If no name is explicitly specified, the default name is used.
 

value

public abstract java.lang.String value
If no name is explicitly specified, the default name is used. For simple beans and session beans the default name is the unqualified class name of the bean class, after converting the first character to lower case. For producer methods the default name is the method name, unless the method follows the JavaBeans property getter naming convention, in which case the default name is the JavaBeans property name.

Returns:
the bean name
Default:
""


Copyright © 2008-2009. All Rights Reserved.