站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.0.5 API 文档英文版

DefaultBeanFactoryPointcutAdvisor (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版

The Spring Framework

org.springframework.aop.support
Class DefaultBeanFactoryPointcutAdvisor

java.lang.Object
  extended by org.springframework.aop.support.AbstractPointcutAdvisor
      extended by org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor
          extended by org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor
All Implemented Interfaces:
Serializable, Advisor, PointcutAdvisor, BeanFactoryAware, Ordered

public class DefaultBeanFactoryPointcutAdvisor
extends AbstractBeanFactoryPointcutAdvisor

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.

Since:
2.0.2
Author:
Juergen Hoeller
See Also:
setPointcut(org.springframework.aop.Pointcut), AbstractBeanFactoryPointcutAdvisor.setAdviceBeanName(java.lang.String), Serialized Form

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
DefaultBeanFactoryPointcutAdvisor()
           
 
Method Summary
 Pointcut getPointcut()
          Get the Pointcut that drives this advisor.
 void setPointcut(Pointcut pointcut)
          Specify the pointcut targeting the advice.
 String toString()
           
 
Methods inherited from class org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor
getAdvice, getAdviceBeanName, setAdviceBeanName, setBeanFactory
 
Methods inherited from class org.springframework.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode, isPerInstance, setOrder
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultBeanFactoryPointcutAdvisor

public DefaultBeanFactoryPointcutAdvisor()
Method Detail

setPointcut

public void setPointcut(Pointcut pointcut)
Specify the pointcut targeting the advice.

Default is Pointcut.TRUE.

See Also:
AbstractBeanFactoryPointcutAdvisor.setAdviceBeanName(java.lang.String)

getPointcut

public Pointcut getPointcut()
Description copied from interface: PointcutAdvisor
Get the Pointcut that drives this advisor.


toString

public String toString()
Overrides:
toString in class AbstractBeanFactoryPointcutAdvisor

The Spring Framework

Copyright © 2002-2007 The Spring Framework.