|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Documented
public @interface RoleIndicates the 'role' hint for a given bean.
May be used on any class directly or indirectly annotated with
Component or on methods annotated with
Bean.
If this annotation is not present on a Component or Bean definition, the
default value of BeanDefinition.ROLE_APPLICATION will apply.
If Role is present on a @Configuration class, this
indicates the role of the configuration class bean definition and does not
cascade to all @Bean methods defined within. This behavior is
different than that of the @Lazy annotation, for example.
BeanDefinition.ROLE_APPLICATION,
BeanDefinition.ROLE_INFRASTRUCTURE,
BeanDefinition.ROLE_SUPPORT,
Bean| Required Element Summary | |
|---|---|
int |
value
Set the role hint for the associated bean. |
| Element Detail |
|---|
public abstract int value
BeanDefinition.ROLE_APPLICATION,
BeanDefinition.ROLE_INFRASTRUCTURE,
BeanDefinition.ROLE_SUPPORT
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||