/** * Takes and wraps the given {@link ServiceLocator} into an {@link ActiveDescriptor}. */ public static ActiveDescriptor<ServiceLocator> newServiceLocatorDescriptor(ServiceLocator locator) { Set<Type> contracts = Collections.<Type>singleton(ServiceLocator.class); Set<Annotation> qualifiers = Collections.emptySet(); ActiveDescriptor<ServiceLocator> descriptor = new ConstantActiveDescriptor<>( locator, contracts, PerLookup.class, null, qualifiers, DescriptorVisibility.LOCAL, 0, null, null, null, locator.getLocatorId(), null); return descriptor; }
/** * Takes and wraps the given {@link ServiceLocator} into an {@link ActiveDescriptor}. */ public static ActiveDescriptor<ServiceLocator> newServiceLocatorDescriptor(ServiceLocator locator) { Set<Type> contracts = Collections.<Type>singleton(ServiceLocator.class); Set<Annotation> qualifiers = Collections.emptySet(); ActiveDescriptor<ServiceLocator> descriptor = new ConstantActiveDescriptor<>( locator, contracts, PerLookup.class, null, qualifiers, DescriptorVisibility.LOCAL, 0, null, null, null, locator.getLocatorId(), null); return descriptor; }
/** * Returns a constant ActiveDescriptor for the basic ServiceLocator * * @param locator The service locator to get the ActiveDescriptor for * @return An active descriptor specifically for the ServiceLocator */ public static ActiveDescriptor<ServiceLocator> getLocatorDescriptor(ServiceLocator locator) { HashSet<Type> contracts = new HashSet<Type>(); contracts.add(ServiceLocator.class); Set<Annotation> qualifiers = Collections.emptySet(); ActiveDescriptor<ServiceLocator> retVal = new ConstantActiveDescriptor<ServiceLocator>( locator, contracts, PerLookup.class, null, qualifiers, DescriptorVisibility.LOCAL, 0, null, null, null, locator.getLocatorId(), null); return retVal; }
/** * Returns a constant ActiveDescriptor for the basic ServiceLocator * * @param locator The service locator to get the ActiveDescriptor for * @return An active descriptor specifically for the ServiceLocator */ public static ActiveDescriptor<ServiceLocator> getLocatorDescriptor(ServiceLocator locator) { HashSet<Type> contracts = new HashSet<Type>(); contracts.add(ServiceLocator.class); Set<Annotation> qualifiers = Collections.emptySet(); ActiveDescriptor<ServiceLocator> retVal = new ConstantActiveDescriptor<ServiceLocator>( locator, contracts, PerLookup.class, null, qualifiers, DescriptorVisibility.LOCAL, 0, null, null, null, locator.getLocatorId(), null); return retVal; }
/** * Returns a constant ActiveDescriptor for the basic ServiceLocator * * @param locator The service locator to get the ActiveDescriptor for * @return An active descriptor specifically for the ServiceLocator */ public static ActiveDescriptor<ServiceLocator> getLocatorDescriptor(ServiceLocator locator) { HashSet<Type> contracts = new HashSet<Type>(); contracts.add(ServiceLocator.class); Set<Annotation> qualifiers = Collections.emptySet(); ActiveDescriptor<ServiceLocator> retVal = new ConstantActiveDescriptor<ServiceLocator>( locator, contracts, PerLookup.class, null, qualifiers, DescriptorVisibility.LOCAL, 0, null, null, null, locator.getLocatorId(), null); return retVal; }
/** * @see #newThreeThirtyInjectionResolverDescriptor(ServiceLocator) * @see #newGuiceInjectionResolverDescriptor(ServiceLocator, ActiveDescriptor) */ private static <T extends Annotation> ActiveDescriptor<InjectionResolver<T>> newActiveDescriptor(ServiceLocator locator, InjectionResolver<T> resolver, Set<Annotation> qualifiers, String name, Class<? extends T> clazz) { Set<Type> contracts = Collections.<Type>singleton( new ParameterizedTypeImpl(InjectionResolver.class, clazz)); ActiveDescriptor<InjectionResolver<T>> descriptor = new ConstantActiveDescriptor<InjectionResolver<T>>( resolver, contracts, Singleton.class, name, qualifiers, DescriptorVisibility.NORMAL, 0, (Boolean)null, (Boolean)null, (String)null, locator.getLocatorId(), (Map<String, List<String>>)null); return descriptor; }
/** * @see #newThreeThirtyInjectionResolverDescriptor(ServiceLocator) * @see #newGuiceInjectionResolverDescriptor(ServiceLocator, ActiveDescriptor) */ private static <T extends Annotation> ActiveDescriptor<InjectionResolver<T>> newActiveDescriptor(ServiceLocator locator, InjectionResolver<T> resolver, Set<Annotation> qualifiers, String name, Class<? extends T> clazz) { Set<Type> contracts = Collections.<Type>singleton( new ParameterizedTypeImpl(InjectionResolver.class, clazz)); ActiveDescriptor<InjectionResolver<T>> descriptor = new ConstantActiveDescriptor<InjectionResolver<T>>( resolver, contracts, Singleton.class, name, qualifiers, DescriptorVisibility.NORMAL, 0, (Boolean)null, (Boolean)null, (String)null, locator.getLocatorId(), (Map<String, List<String>>)null); return descriptor; }
/** * @see #newThreeThirtyInjectionResolverDescriptor(ServiceLocator) * @see #newGuiceInjectionResolverDescriptor(ServiceLocator, ActiveDescriptor) */ private static <T extends Annotation> ActiveDescriptor<InjectionResolver<T>> newActiveDescriptor(ServiceLocator locator, InjectionResolver<T> resolver, Set<Annotation> qualifiers, String name, Class<? extends T> clazz) { Set<Type> contracts = Collections.<Type>singleton( new ParameterizedTypeImpl(InjectionResolver.class, clazz)); ActiveDescriptor<InjectionResolver<T>> descriptor = new ConstantActiveDescriptor<InjectionResolver<T>>( resolver, contracts, Singleton.class, name, qualifiers, DescriptorVisibility.NORMAL, 0, (Boolean)null, (Boolean)null, (String)null, locator.getLocatorId(), (Map<String, List<String>>)null); return descriptor; }
/** * @see #newThreeThirtyInjectionResolverDescriptor(ServiceLocator) * @see #newGuiceInjectionResolverDescriptor(ServiceLocator, ActiveDescriptor) */ private static <T extends Annotation> ActiveDescriptor<InjectionResolver<T>> newActiveDescriptor(ServiceLocator locator, InjectionResolver<T> resolver, Set<Annotation> qualifiers, String name, Class<? extends T> clazz) { Set<Type> contracts = Collections.<Type>singleton( new ParameterizedTypeImpl(InjectionResolver.class, clazz)); ActiveDescriptor<InjectionResolver<T>> descriptor = new ConstantActiveDescriptor<InjectionResolver<T>>( resolver, contracts, Singleton.class, name, qualifiers, DescriptorVisibility.NORMAL, 0, (Boolean)null, (Boolean)null, (String)null, locator.getLocatorId(), (Map<String, List<String>>)null); return descriptor; }
new ConstantActiveDescriptor<InjectionResolver<Inject>>( threeThirtyResolver, contracts,
new ConstantActiveDescriptor<InjectionResolver<Inject>>( threeThirtyResolver, contracts,
new ConstantActiveDescriptor<InjectionResolver<Inject>>( threeThirtyResolver, contracts,
isIterable); return new ConstantActiveDescriptor<Object>(value, this); injectee.getRequiredQualifiers()); return new ConstantActiveDescriptor<Object>(value, this);
isIterable); return new ConstantActiveDescriptor<Object>(value, this); injectee.getRequiredQualifiers()); return new ConstantActiveDescriptor<Object>(value, this);
isIterable); return new ConstantActiveDescriptor<Object>(value, this); injectee.getRequiredQualifiers()); return new ConstantActiveDescriptor<Object>(value, this);
isIterable); return new ConstantActiveDescriptor<Object>(value, this); injectee.getRequiredQualifiers()); return new ConstantActiveDescriptor<Object>(value, this);