| org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator
Method Summary | |
protected Object[] | getAdvicesAndAdvisorsForBean(Class beanClass, String beanName, TargetSource targetSource) Identify as bean to proxy if the bean name is in the configured list of names. | protected boolean | isMatch(String beanName, String mappedName) Return if the given bean name matches the mapped name.
The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches,
as well as direct equality. | 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. |
getAdvicesAndAdvisorsForBean | protected Object[] getAdvicesAndAdvisorsForBean(Class beanClass, String beanName, TargetSource targetSource)(Code) | | Identify as bean to proxy if the bean name is in the configured list of names.
|
isMatch | protected boolean isMatch(String beanName, String mappedName)(Code) | | Return if the given bean name matches the mapped name.
The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches,
as well as direct equality. Can be overridden in subclasses.
Parameters: beanName - the bean name to check Parameters: mappedName - the name in the configured list of names if the names match See Also: org.springframework.util.PatternMatchUtils.simpleMatch(StringString) |
setBeanNames | public void setBeanNames(String[] beanNames)(Code) | | 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".
NOTE: In case of a FactoryBean, only the objects created by the
FactoryBean will get proxied. This default behavior applies as of Spring 2.0.
If you intend to proxy a FactoryBean instance itself (a rare use case, but
Spring 1.2's default behavior), specify the bean name of the FactoryBean
including the factory-bean prefix "&": e.g. "&myFactoryBean".
See Also: org.springframework.beans.factory.FactoryBean See Also: org.springframework.beans.factory.BeanFactory.FACTORY_BEAN_PREFIX |
Methods inherited from org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator | protected Advisor[] buildAdvisors(String beanName, Object[] specificInterceptors)(Code)(Java Doc) protected Object createProxy(Class beanClass, String beanName, Object[] specificInterceptors, TargetSource targetSource)(Code)(Java Doc) protected void customizeProxyFactory(ProxyFactory proxyFactory)(Code)(Java Doc) abstract protected Object[] getAdvicesAndAdvisorsForBean(Class beanClass, String beanName, TargetSource customTargetSource) throws BeansException(Code)(Java Doc) protected BeanFactory getBeanFactory()(Code)(Java Doc) protected Object getCacheKey(Class beanClass, String beanName)(Code)(Java Doc) protected TargetSource getCustomTargetSource(Class beanClass, String beanName)(Code)(Java Doc) final public int getOrder()(Code)(Java Doc) public boolean isFrozen()(Code)(Java Doc) protected boolean isInfrastructureClass(Class beanClass, String beanName)(Code)(Java Doc) protected boolean isInfrastructureClass(Class beanClass)(Code)(Java Doc) public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException(Code)(Java Doc) public boolean postProcessAfterInstantiation(Object bean, String beanName)(Code)(Java Doc) public Object postProcessBeforeInitialization(Object bean, String beanName)(Code)(Java Doc) public Object postProcessBeforeInstantiation(Class beanClass, String beanName) throws BeansException(Code)(Java Doc) public PropertyValues postProcessPropertyValues(PropertyValues pvs, PropertyDescriptor[] pds, Object bean, String beanName)(Code)(Java Doc) public void setAdvisorAdapterRegistry(AdvisorAdapterRegistry advisorAdapterRegistry)(Code)(Java Doc) public void setApplyCommonInterceptorsFirst(boolean applyCommonInterceptorsFirst)(Code)(Java Doc) public void setBeanClassLoader(ClassLoader classLoader)(Code)(Java Doc) public void setBeanFactory(BeanFactory beanFactory)(Code)(Java Doc) public void setCustomTargetSourceCreators(TargetSourceCreator[] targetSourceCreators)(Code)(Java Doc) public void setFrozen(boolean frozen)(Code)(Java Doc) public void setInterceptorNames(String[] interceptorNames)(Code)(Java Doc) final public void setOrder(int order)(Code)(Java Doc) protected boolean shouldProxyTargetClass(Class beanClass, String beanName)(Code)(Java Doc) protected boolean shouldSkip(Class beanClass, String beanName)(Code)(Java Doc)
|
|
|