Examples of proxyTargetClass()


Examples of org.springframework.config.java.annotation.aop.ScopedProxy.proxyTargetClass()

      // "hiding" the target bean in an internal target definition.
      String targetBeanName = ScopedProxyMethodProcessor.resolveHiddenScopedProxyBeanName(originalBeanName);
      RootBeanDefinition scopedProxyDefinition = new RootBeanDefinition(ScopedProxyFactoryBean.class);
      scopedProxyDefinition.getPropertyValues().addPropertyValue("targetBeanName", targetBeanName);

      if (proxyAnnotation.proxyTargetClass()) {
        targetDefinition.setAttribute(AutoProxyUtils.PRESERVE_TARGET_CLASS_ATTRIBUTE, Boolean.TRUE);
        // ScopedFactoryBean's "proxyTargetClass" default is TRUE, so we
        // don't need to set it explicitly here.
      }
      else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.