org.springframework.aop.framework.autoproxy
Class BeanNameAutoProxyCreator

org.springframework.aop.framework.ProxyConfig
  |
  +--org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
        |
        +--org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator

public class BeanNameAutoProxyCreator
extends AbstractAutoProxyCreator

Auto proxy creator that identifies beans to proxy via a list of names. Checks for direct, "xxx*", and "*xxx" matches.

Author:
Juergen Hoeller
Since: 10.10.2003
See Also: setBeanNames(java.lang.String[]), isMatch(java.lang.String,java.lang.String)

Method Summary
 voidsetBeanNames(String[] beanNames)
          Set the names of the beans that should automatically get wrapped with proxies.

Methods inherited from class org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
getOrder, postProcessAfterInitialization, postProcessBeforeInitialization, setApplyCommonInterceptorsFirst, setBeanFactory, setCustomTargetSourceCreators, setInterceptorNames, setOrder

Methods inherited from class org.springframework.aop.framework.ProxyConfig
copyFrom, getExposeProxy, getOptimize, getProxyTargetClass, setExposeProxy, setOptimize, setProxyTargetClass, toString

Method Detail

setBeanNames

public void setBeanNames(String[] beanNames)
Set the names of the beans that should automatically get wrapped with proxies. A name can specify a prefix to match by ending with "*", e.g. "myBean,tx*" will match the bean named "myBean" and all beans whose name start with "tx".

Association Links

to Class java.util.List