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.injectors.AdaptingInjection; 013 import org.picocontainer.injectors.SetterInjection; 014 import org.picocontainer.injectors.ConstructorInjection; 015 import org.picocontainer.injectors.AnnotatedMethodInjection; 016 import org.picocontainer.InjectionFactory; 017 018 public class Injectors { 019 020 public static InjectionFactory adaptiveDI() { 021 return new AdaptingInjection(); 022 } 023 024 public static InjectionFactory SDI() { 025 return new SetterInjection(); 026 } 027 028 public static InjectionFactory CDI() { 029 return new ConstructorInjection(); 030 } 031 032 public static InjectionFactory annotatedMethodDI() { 033 return new AnnotatedMethodInjection(); 034 } 035 036 public static InjectionFactory annotatedFieldDI() { 037 return new AnnotatedFieldInjection(); 038 } 039 040 }