|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.framework.ProxyConfig org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator ch.elca.el4j.core.aop.ExclusiveBeanNameAutoProxyCreator
public class ExclusiveBeanNameAutoProxyCreator
Auto proxy creator that identifies beans to proxy via a list of names.
Additionally, it allows you to specify a list of names that must not be
proxied. Both list, beanNames
and
exclusiveBeanNames
check for direct, "xxx*", and "*xxx" matches.
Note if you don't specify an include pattern (i.e. not setting the
beanNames
property) and you have specified some beans to
exclude, then all beans except the excluding ones will be auto-proxied.
Exclusion has higher precedence than inclusions. Additional features of this auto proxy creator:
BeanNameAutoProxyCreator
,
Serialized FormField Summary | |
---|---|
static String[] |
AUTOPROXY_ALL_BEANS
Bean names to autoproxy all beans. |
Fields inherited from class org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator |
---|
DO_NOT_PROXY, logger, PROXY_WITHOUT_ADDITIONAL_INTERCEPTORS |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
ExclusiveBeanNameAutoProxyCreator()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected Object |
createProxy(Class beanClass,
String beanName,
Object[] specificInterceptors,
TargetSource targetSource)
Will not create a new proxy for a given bean if this bean is already a proxy bean. |
protected Object[] |
getAdvicesAndAdvisorsForBean(Class beanClass,
String beanName,
TargetSource targetSource)
|
protected AdvisorAdapterRegistry |
getAdvisorAdapterRegistry()
|
protected String[] |
getInterceptorNames()
|
protected boolean |
isApplyCommonInterceptorsFirst()
|
boolean |
isProxyFactoryBeanOutput()
|
void |
setAdvisorAdapterRegistry(AdvisorAdapterRegistry advisorAdapterRegistry)
COPYIED FROM SUPERCLASS! |
void |
setApplyCommonInterceptorsFirst(boolean applyCommonInterceptorsFirst)
COPYIED FROM SUPERCLASS! |
void |
setBeanNames(String[] beanNames)
|
void |
setExclusiveBeanNames(String[] exclusiveBeanNames)
Set the names of the beans that must not automatically get wrapped with proxies. |
void |
setInterceptorNames(String[] interceptorNames)
COPYIED FROM SUPERCLASS! |
void |
setProxyFactoryBeanOutput(boolean proxyFactoryBeanOutput)
|
protected Object |
wrapIfNecessary(Object bean,
String beanName,
Object cacheKey)
Wrap a bean if necessary. |
Methods inherited from class org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator |
---|
isMatch |
Methods inherited from class org.springframework.aop.framework.ProxyConfig |
---|
copyFrom, isExposeProxy, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setOpaque, setOptimize, setProxyTargetClass, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String[] AUTOPROXY_ALL_BEANS
Constructor Detail |
---|
public ExclusiveBeanNameAutoProxyCreator()
Method Detail |
---|
public void setExclusiveBeanNames(String[] exclusiveBeanNames)
exclusiveBeanNames
- The bean names to exclude.public void setBeanNames(String[] beanNames)
setBeanNames
in class BeanNameAutoProxyCreator
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
protected Object wrapIfNecessary(Object bean, String beanName, Object cacheKey)
FactoryBean
then wrap it
using GenericProxiedFactoryBean
.
wrapIfNecessary
in class AbstractAutoProxyCreator
protected Object createProxy(Class beanClass, String beanName, Object[] specificInterceptors, TargetSource targetSource)
createProxy
in class AbstractAutoProxyCreator
protected Object[] getAdvicesAndAdvisorsForBean(Class beanClass, String beanName, TargetSource targetSource)
getAdvicesAndAdvisorsForBean
in class BeanNameAutoProxyCreator
protected String[] getInterceptorNames()
public void setInterceptorNames(String[] interceptorNames)
setInterceptorNames
in class AbstractAutoProxyCreator
protected AdvisorAdapterRegistry getAdvisorAdapterRegistry()
public void setAdvisorAdapterRegistry(AdvisorAdapterRegistry advisorAdapterRegistry)
setAdvisorAdapterRegistry
in class AbstractAutoProxyCreator
protected boolean isApplyCommonInterceptorsFirst()
public void setApplyCommonInterceptorsFirst(boolean applyCommonInterceptorsFirst)
setApplyCommonInterceptorsFirst
in class AbstractAutoProxyCreator
applyCommonInterceptorsFirst
- See method description.public boolean isProxyFactoryBeanOutput()
FactoryBean
be proxied instead of the factory itself?public void setProxyFactoryBeanOutput(boolean proxyFactoryBeanOutput)
proxyFactoryBeanOutput
- Should the output of a FactoryBean
be proxied instead of the factory itself?
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |