public static InjectionType annotatedFieldDI(final Class<? extends Annotation> injectionAnnotation) { return new AnnotatedFieldInjection(injectionAnnotation); }
@SuppressWarnings({ "rawtypes", "unchecked" }) public <T> ComponentAdapter<T> createComponentAdapter(final ComponentMonitor monitor, final LifecycleStrategy lifecycle, final Properties componentProps, final Object key, final Class<T> impl, final ConstructorParameters constructorParams, final FieldParameters[] fieldParams, final MethodParameters[] methodParams) throws PicoCompositionException { boolean useNames = AbstractBehavior.arePropertiesPresent(componentProps, Characteristics.USE_NAMES, true); boolean requireConsumptionOfAllParameters = !(AbstractBehavior.arePropertiesPresent(componentProps, Characteristics.ALLOW_UNUSED_PARAMETERS, false)); return wrapLifeCycle(monitor.newInjector(new AnnotatedFieldInjector(key, impl, fieldParams, monitor, useNames, requireConsumptionOfAllParameters, injectionAnnotations)), lifecycle); }
@SuppressWarnings({ "rawtypes", "unchecked" }) public <T> ComponentAdapter<T> createComponentAdapter(final ComponentMonitor monitor, final LifecycleStrategy lifecycle, final Properties componentProps, final Object key, final Class<T> impl, final ConstructorParameters constructorParams, final FieldParameters[] fieldParams, final MethodParameters[] methodParams) throws PicoCompositionException { boolean useNames = AbstractBehavior.arePropertiesPresent(componentProps, Characteristics.USE_NAMES, true); boolean requireConsumptionOfAllParameters = !(AbstractBehavior.arePropertiesPresent(componentProps, Characteristics.ALLOW_UNUSED_PARAMETERS, false)); return wrapLifeCycle(monitor.newInjector(new AnnotatedFieldInjector(key, impl, fieldParams, monitor, useNames, requireConsumptionOfAllParameters, injectionAnnotations)), lifecycle); }
public static InjectionType annotatedFieldDI(final Class<? extends Annotation> injectionAnnotation) { return new AnnotatedFieldInjection(injectionAnnotation); }
public static InjectionType annotatedFieldDI() { return new AnnotatedFieldInjection(); }
public static InjectionType annotatedFieldDI() { return new AnnotatedFieldInjection(); }
public AdaptingInjection() { constructorInjection = new Jsr330ConstructorInjection(); methodInjection = new MethodInjection(); setterInjection = new SetterInjection(); annotatedMethodInjection = new AnnotatedMethodInjection(); annotatedFieldInjection = new AnnotatedFieldInjection(); }
public AdaptingInjection() { constructorInjection = new Jsr330ConstructorInjection(); methodInjection = new MethodInjection(); setterInjection = new SetterInjection(); annotatedMethodInjection = new AnnotatedMethodInjection(); annotatedFieldInjection = new AnnotatedFieldInjection(); }