Examples of ScopedProxyMode


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

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

Examples of org.springframework.context.annotation.ScopedProxyMode

   *
   * @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

Examples of org.springframework.context.annotation.ScopedProxyMode

      attributes = findProxyAttributes(metadata);

    if (attributes == null)
      return;

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

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

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

Examples of org.springframework.context.annotation.ScopedProxyMode

   *
   * @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

Examples of org.springframework.context.annotation.ScopedProxyMode

   *
   * @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
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.