|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elca.el4j.core.aop.ProxyEnricher
public class ProxyEnricher
Used to enrich an existing proxy.
Constructor Summary | |
---|---|
protected |
ProxyEnricher()
Hide default constructor. |
Method Summary | |
---|---|
static Object |
enrichProxy(Class<?> beanClass,
String beanName,
Object[] specificInterceptors,
TargetSource targetSource,
String[] interceptorNames,
BeanFactory beanFactory,
AdvisorAdapterRegistry advisorAdapterRegistry,
boolean applyCommonInterceptorsFirst)
If the target of the given target source is already an advised object, then this proxy will be enriched with the known advisors. |
protected static Object |
enrichProxyInternal(Class beanClass,
String beanName,
Object[] specificInterceptors,
TargetSource targetSource,
String[] interceptorNames,
BeanFactory beanFactory,
AdvisorAdapterRegistry advisorAdapterRegistry,
boolean applyCommonInterceptorsFirst,
Advised proxy)
Enriches the given proxy instead of creating a new proxy. |
static boolean |
isProxyEnrichable(Class<?> beanClass,
String beanName,
Object[] specificInterceptors,
TargetSource targetSource,
BeanFactory beanFactory)
Tests if the given bean is a proxy and if it is possible to enrich it. |
protected static Advisor[] |
resolveInterceptorNames(String[] interceptorNames,
BeanFactory beanFactory,
AdvisorAdapterRegistry advisorAdapterRegistry)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ProxyEnricher()
Method Detail |
---|
public static Object enrichProxy(Class<?> beanClass, String beanName, Object[] specificInterceptors, TargetSource targetSource, String[] interceptorNames, BeanFactory beanFactory, AdvisorAdapterRegistry advisorAdapterRegistry, boolean applyCommonInterceptorsFirst)
null
.
beanClass
- the class of the beanbeanName
- the name of the beanspecificInterceptors
- the set of interceptors that is specific to this bean (may be
empty, but not null)targetSource
- the TargetSource for the proxy, already pre-configured to
access the beaninterceptorNames
- Are the names of interceptors to add to proxy too.beanFactory
- Is the bean factory.advisorAdapterRegistry
- Is the advisor adapter registry.applyCommonInterceptorsFirst
- Flag if common interceptors should be applied before the
specific interceptors.
null
if enrichment
failed for some reason.public static boolean isProxyEnrichable(Class<?> beanClass, String beanName, Object[] specificInterceptors, TargetSource targetSource, BeanFactory beanFactory)
beanClass
- the class of the beanbeanName
- the name of the beanspecificInterceptors
- the set of interceptors that is specific to this bean (may be
empty, but not null)targetSource
- the TargetSource for the proxy, already pre-configured to
access the beanbeanFactory
- Is the factory where to get beans.
true
if the given bean is a proxy and if it
is possible to enrich it.protected static Object enrichProxyInternal(Class beanClass, String beanName, Object[] specificInterceptors, TargetSource targetSource, String[] interceptorNames, BeanFactory beanFactory, AdvisorAdapterRegistry advisorAdapterRegistry, boolean applyCommonInterceptorsFirst, Advised proxy)
beanClass
- the class of the beanbeanName
- the name of the beanspecificInterceptors
- the set of interceptors that is specific to this bean (may be
empty, but not null)targetSource
- the TargetSource for the proxy, already pre-configured to
access the beaninterceptorNames
- Are the names of interceptors to add to given proxy too.beanFactory
- Is the bean factory.advisorAdapterRegistry
- Is the advisor adapter registry.applyCommonInterceptorsFirst
- Flag if common interceptors should be applied before the
common interceptors.proxy
- Is the proxy (advised) to enrich.
#createProxy(Class, String, Object[], TargetSource)
protected static Advisor[] resolveInterceptorNames(String[] interceptorNames, BeanFactory beanFactory, AdvisorAdapterRegistry advisorAdapterRegistry)
interceptorNames
- Are the interceptor names to resolve.beanFactory
- Is the used bean factory.advisorAdapterRegistry
- Is the used advisor adapter registry.
AbstractAutoProxyCreator.resolveInterceptorNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |