Package org.springframework.context.annotation

Examples of org.springframework.context.annotation.ScopedProxyMode


   * @return
   */
  private BeanDefinitionHolder applyScopeOn(BeanDefinitionRegistry registry, BeanDefinitionHolder definition,
      ScopeMetadata scopeMetadata) {
    String scope = scopeMetadata.getScopeName();
    ScopedProxyMode proxyMode = scopeMetadata.getScopedProxyMode();
    definition.getBeanDefinition().setScope(scope);
    if (BeanDefinition.SCOPE_SINGLETON.equals(scope) || BeanDefinition.SCOPE_PROTOTYPE.equals(scope)
        || proxyMode.equals(ScopedProxyMode.NO)) {
      return definition;
    } else {
      boolean proxyTargetClass = proxyMode.equals(ScopedProxyMode.TARGET_CLASS);
      return ScopedProxyUtils.createScopedProxy(definition, registry, proxyTargetClass);
    }
  }
View Full Code Here


   * @return
   */
  private BeanDefinitionHolder applyScopeOn(BeanDefinitionRegistry registry, BeanDefinitionHolder definition,
      ScopeMetadata scopeMetadata) {
    String scope = scopeMetadata.getScopeName();
    ScopedProxyMode proxyMode = scopeMetadata.getScopedProxyMode();
    definition.getBeanDefinition().setScope(scope);
    if (BeanDefinition.SCOPE_SINGLETON.equals(scope) || BeanDefinition.SCOPE_PROTOTYPE.equals(scope)
        || proxyMode.equals(ScopedProxyMode.NO)) {
      return definition;
    } else {
      boolean proxyTargetClass = proxyMode.equals(ScopedProxyMode.TARGET_CLASS);
      return ScopedProxyUtils.createScopedProxy(definition, registry, proxyTargetClass);
    }
  }
View Full Code Here

   *
   * @return
   */
  private BeanDefinitionHolder applyScopeOn(BeanDefinitionHolder definition, ScopeMetadata scopeMetadata) {
    String scope = scopeMetadata.getScopeName();
    ScopedProxyMode proxyMode = scopeMetadata.getScopedProxyMode();
    definition.getBeanDefinition().setScope(scope);
    if (BeanDefinition.SCOPE_SINGLETON.equals(scope) || BeanDefinition.SCOPE_PROTOTYPE.equals(scope)
        || proxyMode.equals(ScopedProxyMode.NO)) {
      return definition;
    } else {
      boolean proxyTargetClass = proxyMode.equals(ScopedProxyMode.TARGET_CLASS);
      return ScopedProxyUtils.createScopedProxy(definition, (BeanDefinitionRegistry) beanFactory, proxyTargetClass);
    }
  }
View Full Code Here

      attributes = findProxyAttributes(metadata);

    if (attributes == null)
      return;

    ScopedProxyMode proxyMode = (ScopedProxyMode) attributes
        .get("proxyMode");
    scopeMetadata.setScopedProxyMode(proxyMode);
  }
View Full Code Here

   * @return
   */
  private BeanDefinitionHolder applyScopeOn(BeanDefinitionRegistry registry, BeanDefinitionHolder definition,
      ScopeMetadata scopeMetadata) {
    String scope = scopeMetadata.getScopeName();
    ScopedProxyMode proxyMode = scopeMetadata.getScopedProxyMode();
    definition.getBeanDefinition().setScope(scope);
    if (BeanDefinition.SCOPE_SINGLETON.equals(scope) || BeanDefinition.SCOPE_PROTOTYPE.equals(scope)
        || proxyMode.equals(ScopedProxyMode.NO)) {
      return definition;
    } else {
      boolean proxyTargetClass = proxyMode.equals(ScopedProxyMode.TARGET_CLASS);
      return ScopedProxyUtils.createScopedProxy(definition, registry, proxyTargetClass);
    }
  }
View Full Code Here

   * @return
   */
  private BeanDefinitionHolder applyScopeOn(BeanDefinitionRegistry registry, BeanDefinitionHolder definition,
      ScopeMetadata scopeMetadata) {
    String scope = scopeMetadata.getScopeName();
    ScopedProxyMode proxyMode = scopeMetadata.getScopedProxyMode();
    definition.getBeanDefinition().setScope(scope);
    if (BeanDefinition.SCOPE_SINGLETON.equals(scope) || BeanDefinition.SCOPE_PROTOTYPE.equals(scope)
        || proxyMode.equals(ScopedProxyMode.NO)) {
      return definition;
    } else {
      boolean proxyTargetClass = proxyMode.equals(ScopedProxyMode.TARGET_CLASS);
      return ScopedProxyUtils.createScopedProxy(definition, registry, proxyTargetClass);
    }
  }
View Full Code Here

   *
   * @return
   */
  private BeanDefinitionHolder applyScopeOn(BeanDefinitionHolder definition, ScopeMetadata scopeMetadata) {
    String scope = scopeMetadata.getScopeName();
    ScopedProxyMode proxyMode = scopeMetadata.getScopedProxyMode();
    definition.getBeanDefinition().setScope(scope);
    if (BeanDefinition.SCOPE_SINGLETON.equals(scope) || BeanDefinition.SCOPE_PROTOTYPE.equals(scope)
        || proxyMode.equals(ScopedProxyMode.NO)) {
      return definition;
    } else {
      boolean proxyTargetClass = proxyMode.equals(ScopedProxyMode.TARGET_CLASS);
      return ScopedProxyUtils.createScopedProxy(definition, (BeanDefinitionRegistry) beanFactory, proxyTargetClass);
    }
  }
View Full Code Here

   *
   * @return
   */
  private BeanDefinitionHolder applyScopeOn(BeanDefinitionHolder definition, ScopeMetadata scopeMetadata) {
    String scope = scopeMetadata.getScopeName();
    ScopedProxyMode proxyMode = scopeMetadata.getScopedProxyMode();
    definition.getBeanDefinition().setScope(scope);
    if (BeanDefinition.SCOPE_SINGLETON.equals(scope) || BeanDefinition.SCOPE_PROTOTYPE.equals(scope)
        || proxyMode.equals(ScopedProxyMode.NO)) {
      return definition;
    } else {
      boolean proxyTargetClass = proxyMode.equals(ScopedProxyMode.TARGET_CLASS);
      return ScopedProxyUtils.createScopedProxy(definition, (BeanDefinitionRegistry) beanFactory, proxyTargetClass);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.context.annotation.ScopedProxyMode

Copyright © 2018 www.massapicom. 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.