Top Description Fields Constructors Methods
org.springframework.aop.support

public Class DefaultBeanFactoryPointcutAdvisor

extends AbstractBeanFactoryPointcutAdvisor
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.aop.Pointcut, org.springframework.lang.Nullable

Concrete BeanFactory-based PointcutAdvisor that allows for any Advice to be configured as reference to an Advice bean in the BeanFactory, as well as the Pointcut to be configured through a bean property.

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.

Author
Juergen Hoeller
Since
2.0.2
See Also
setPointcut, setAdviceBeanName

Field Summary

Modifier and TypeField and Description
private Pointcut

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Pointcut
getPointcut()

Implements org.springframework.aop.PointcutAdvisor.getPointcut.

Get the Pointcut that drives this advisor.

public void
setPointcut(Pointcut pointcut)

Specify the pointcut targeting the advice.

public String
toString()

Overrides org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.toString.

Returns a string representation of the object.

Inherited from org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor:
getAdvicegetAdviceBeanNamesetAdvicesetAdviceBeanNamesetBeanFactory

Field Detail

pointcutback to summary
private Pointcut pointcut

Constructor Detail

DefaultBeanFactoryPointcutAdvisorback to summary
public DefaultBeanFactoryPointcutAdvisor()

Method Detail

getPointcutback to summary
public Pointcut getPointcut()

Implements org.springframework.aop.PointcutAdvisor.getPointcut.

Doc from org.springframework.aop.PointcutAdvisor.getPointcut.

Get the Pointcut that drives this advisor.

Annotations
@Override
setPointcutback to summary
public void setPointcut(Pointcut pointcut)

Specify the pointcut targeting the advice.

Default is Pointcut.TRUE.

See Also
setAdviceBeanName
toStringback to summary
public String toString()

Overrides org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override