Package juzu.impl.inject

Examples of juzu.impl.inject.BeanDescriptor


      @Override
      public MetricRegistry get() {
        return registry;
      }
    }; //<1>
    BeanDescriptor registryDescriptor = BeanDescriptor.createFromProvider//<2>
        MetricRegistry.class,
        Scope.SINGLETON,
        Collections.<Annotation>emptyList(),
        registryProvider);
    return new ServiceDescriptor(Arrays.asList(registryDescriptor));        //<3>
View Full Code Here


        Class<?> beanClass = loader.loadClass(value);
        juzu.Scope beanScope = scope != null ? juzu.Scope.valueOf(scope.toUpperCase()) : null;
        Class<?> beanImplClass = implementation != null ? loader.loadClass(implementation) : null;

        //
        BeanDescriptor descriptor;
        if (beanImplClass != null) {
          if (Provider.class.isAssignableFrom(beanImplClass)) {
            // Should check that the provider resolved <T> variable
            // is assignable from the implementation Type
            descriptor = BeanDescriptor.createFromProviderType((Class)beanClass, beanScope, null, (Class)beanImplClass);
View Full Code Here

TOP

Related Classes of juzu.impl.inject.BeanDescriptor

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.