01: /*****************************************************************************
02: * Copyright (C) PicoContainer Organization. All rights reserved. *
03: * ------------------------------------------------------------------------- *
04: * The software in this package is published under the terms of the BSD *
05: * style license a copy of which has been included with this distribution in *
06: * the LICENSE.txt file. *
07: * *
08: * Original code by *
09: *****************************************************************************/package org.picocontainer.injectors;
10:
11: import org.picocontainer.injectors.AdaptingInjection;
12: import org.picocontainer.injectors.SetterInjection;
13: import org.picocontainer.injectors.ConstructorInjection;
14: import org.picocontainer.injectors.AnnotatedMethodInjection;
15: import org.picocontainer.InjectionFactory;
16:
17: public class Injectors {
18:
19: public static InjectionFactory adaptiveDI() {
20: return new AdaptingInjection();
21: }
22:
23: public static InjectionFactory SDI() {
24: return new SetterInjection();
25: }
26:
27: public static InjectionFactory CDI() {
28: return new ConstructorInjection();
29: }
30:
31: public static InjectionFactory annotatedMethodDI() {
32: return new AnnotatedMethodInjection();
33: }
34:
35: public static InjectionFactory annotatedFieldDI() {
36: return new AnnotatedFieldInjection();
37: }
38:
39: }
|