Component stereotypes such as
@Controller with annotation
handler methods often need cross-cutting functionality across all or a subset
of such annotated components. A primary example of this is the need for "global"
annotated exception handler methods but the concept applies more generally.
| Modifier and Type | Method and Description |
|---|---|
| public Class | |
| public boolean | isApplicableToBeanType(Class<?>
the type of the bean to check beanType)Whether this |
| public Object | resolveBean()
Return the advice bean instance, if necessary resolving a bean specified by name through the BeanFactory. |
| getBeanType | back to summary |
|---|---|
| public Class Return the type of the contained advice bean. If the bean type is a CGLIB-generated class, the original user-defined class is returned.
| |
| isApplicableToBeanType | back to summary |
|---|---|
| public boolean isApplicableToBeanType(Class<?> beanType) Whether this
| |
| resolveBean | back to summary |
|---|---|
| public Object resolveBean() Return the advice bean instance, if necessary resolving a bean specified by name through the BeanFactory. | |