Package jodd.petite.scope

Examples of jodd.petite.scope.Scope


  /**
   * Returns scoped proxy bean if injection scopes are mixed on some injection point.
   * May return <code>null</code> if mixing scopes is not detected.
   */
  public Object lookupValue(PetiteContainer petiteContainer, BeanDefinition targetBeanDefinition, BeanDefinition refBeanDefinition) {
    Scope targetScope = targetBeanDefinition.scope;
    Scope refBeanScope = refBeanDefinition.scope;

    boolean detectMixedScopes = petiteContainer.getConfig().isDetectMixedScopes();
    boolean wireScopedProxy = petiteContainer.getConfig().isWireScopedProxy();

    // when target scope is null then all beans can be injected into it
View Full Code Here


          " in: " + scopeType.getSimpleName() +
          " using wiring mode: " + wiringMode.toString());
    }

    // register
    Scope scope = resolveScope(scopeType);
    BeanDefinition beanDefinition = createBeanDefinitionForRegistration(name, type, scope, wiringMode);
    beans.put(name, beanDefinition);

    // providers
    ProviderDefinition[] providerDefinitions = petiteResolvers.resolveProviderDefinitions(beanDefinition);
View Full Code Here

          " in " + scopeType.getSimpleName() +
          " using wiring mode " + wiringMode.toString());
    }

    // register
    Scope scope = resolveScope(scopeType);
    BeanDefinition beanDefinition = createBeanDefinitionForRegistration(name, type, scope, wiringMode);
    beans.put(name, beanDefinition);

    // providers
    ProviderDefinition[] providerDefinitions = petiteResolvers.resolveProviderDefinitions(beanDefinition);
View Full Code Here

TOP

Related Classes of jodd.petite.scope.Scope

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.