001 /*****************************************************************************
002 * Copyright (C) PicoContainer Organization. All rights reserved. *
003 * ------------------------------------------------------------------------- *
004 * The software in this package is published under the terms of the BSD *
005 * style license a copy of which has been included with this distribution in *
006 * the LICENSE.txt file. *
007 * *
008 * Original code by *
009 *****************************************************************************/
010 package org.picocontainer.injectors;
011
012 import org.picocontainer.InjectionFactory;
013
014 public class Injectors {
015
016 public static InjectionFactory adaptiveDI() {
017 return new AdaptingInjection();
018 }
019
020 public static InjectionFactory SDI() {
021 return new SetterInjection();
022 }
023
024 public static InjectionFactory CDI() {
025 return new ConstructorInjection();
026 }
027
028 public static InjectionFactory namedMethod() {
029 return new NamedMethodInjection();
030 }
031
032 public static InjectionFactory namedField() {
033 return new NamedFieldInjection();
034 }
035
036 public static InjectionFactory annotatedMethodDI() {
037 return new AnnotatedMethodInjection();
038 }
039
040 public static InjectionFactory annotatedFieldDI() {
041 return new AnnotatedFieldInjection();
042 }
043
044 public static InjectionFactory typedFieldDI() {
045 return new TypedFieldInjection();
046 }
047
048 }