Specifying the name of an advice bean instead of the advice object itself (if running within a BeanFactory) increases loose coupling at initialization time, in order to not initialize the advice object until the pointcut actually matches.
setPointcut, setAdviceBeanName
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Pointcut | getPointcut()
Implements org. |
| public void | |
| public String | toString()
Overrides org. |
| pointcut | back to summary |
|---|---|
| private Pointcut pointcut | |
| DefaultBeanFactoryPointcutAdvisor | back to summary |
|---|---|
| public DefaultBeanFactoryPointcutAdvisor() | |
| getPointcut | back to summary |
|---|---|
| public Pointcut getPointcut() Implements org. Doc from org. Get the Pointcut that drives this advisor.
| |
| setPointcut | back to summary |
|---|---|
| public void setPointcut(Pointcut pointcut) Specify the pointcut targeting the advice. Default is
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |