org.springframework.aop.framework.autoproxy.ProxyCreationContext Java Examples
The following examples show how to use
org.springframework.aop.framework.autoproxy.ProxyCreationContext.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SerializableProxyAdvisor.java From jdal with Apache License 2.0 | 6 votes |
/** * Checks for {@link SerializableProxy} annotation at type level. * @return true if annotation found. */ @Override public boolean matches(Class<?> clazz) { String beanName = ProxyCreationContext.getCurrentProxiedBeanName(); // skip serializable proxies and targets if (SerializableAopProxy.class.isAssignableFrom(clazz) || isTargetSerializableProxyBean(beanName) ) return false; // check annotation SerializableProxy ann = AnnotationUtils.findAnnotation(clazz, SerializableProxy.class); if (ann != null) { if (isProxyInCreation(beanName)) { configureReference(ann, beanName); } return true; } // check type pattern if (getTypePattern() != null && this.typePatternClassFilter.matches(clazz)) { if (isProxyInCreation(beanName)) configureReference(beanName); return true; } return false; }
Example #2
Source File: AspectJExpressionPointcut.java From spring-analysis-note with MIT License | 4 votes |
@Nullable protected String getCurrentProxiedBeanName() { return ProxyCreationContext.getCurrentProxiedBeanName(); }
Example #3
Source File: AspectJExpressionPointcut.java From java-technology-stack with MIT License | 4 votes |
@Nullable protected String getCurrentProxiedBeanName() { return ProxyCreationContext.getCurrentProxiedBeanName(); }
Example #4
Source File: AspectJExpressionPointcut.java From lams with GNU General Public License v2.0 | 4 votes |
protected String getCurrentProxiedBeanName() { return ProxyCreationContext.getCurrentProxiedBeanName(); }
Example #5
Source File: AspectJExpressionPointcut.java From spring4-understanding with Apache License 2.0 | 4 votes |
protected String getCurrentProxiedBeanName() { return ProxyCreationContext.getCurrentProxiedBeanName(); }