@SuppressWarnings({"unchecked"}) public ImplementationManager createManager() { ObjectFactory<?> factory = reflectionFactory.createInstantiator(constructor, getConstructorParameterFactories(cdiSources)); Map<Injectable, Injector<?>> mappings = createInjectorMappings(); Injectable[] attributes = mappings.keySet().toArray(new Injectable[mappings.size()]); Injector<Object>[] injectors = mappings.values().toArray(new Injector[mappings.size()]); return new ImplementationManagerImpl(componentUri, factory, attributes, injectors, initInvoker, destroyInvoker, reinjectable, cl); }
@SuppressWarnings({"unchecked"}) public ImplementationManager createManager() { Supplier<?> factory = reflectionFactory.createInstantiator(constructor, getConstructorParameterSuppliers(cdiSources)); Map<Injectable, Injector<?>> mappings = createInjectorMappings(); Injectable[] attributes = mappings.keySet().toArray(new Injectable[mappings.size()]); Injector<Object>[] injectors = mappings.values().toArray(new Injector[mappings.size()]); return new ImplementationManagerImpl(factory, attributes, injectors, initInvoker, destroyInvoker, reinjectable, cl); }
@SuppressWarnings({"unchecked"}) public ImplementationManager createManager() { Supplier<?> factory = reflectionFactory.createInstantiator(constructor, getConstructorParameterSuppliers(cdiSources)); Map<Injectable, Injector<?>> mappings = createInjectorMappings(); Injectable[] attributes = mappings.keySet().toArray(new Injectable[mappings.size()]); Injector<Object>[] injectors = mappings.values().toArray(new Injector[mappings.size()]); return new ImplementationManagerImpl(factory, attributes, injectors, initInvoker, destroyInvoker, reinjectable, cl); }