X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=support%2Finject%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Finject%2FSimpleInjector.java;h=449a65a33162bf97114510bbafd8879e5fcce8fc;hb=35d5deaee957e49d298ca069b3e035bee3ec5108;hp=9e83064c98cbe5e8f7f5007e94e0fb14ff751b82;hpb=466df0c4c373fe3d86a851fa4adbf72d015a0225;p=utils diff --git a/support/inject/src/main/java/org/wamblee/inject/SimpleInjector.java b/support/inject/src/main/java/org/wamblee/inject/SimpleInjector.java index 9e83064c..449a65a3 100644 --- a/support/inject/src/main/java/org/wamblee/inject/SimpleInjector.java +++ b/support/inject/src/main/java/org/wamblee/inject/SimpleInjector.java @@ -15,7 +15,6 @@ */ package org.wamblee.inject; - /** * The main entry point for programmatic dependency injection. A different * {@link InjectorFactory} can be plugged in for testing. @@ -23,6 +22,7 @@ package org.wamblee.inject; *
* Given the following class: *
+ * ** class Pojo { * @EJB @@ -47,17 +47,16 @@ package org.wamblee.inject; * TheSimpleInjector
should be cached. This is because the *SimpleInjector
caches the {@link Injector} objects that it uses * internally for performance. This is done because creation of these internal - *Injector
objects may be costly. Caching the simple injector makes sure - * that a class is not analysed again for annotations every time injection is - * used. + *Injector
objects may be costly. Caching the simple injector + * makes sure that a class is not analysed again for annotations every time + * injection is used. * * For more advanced cases, the injector factory can also be directly - * constructed instead of being obtained through the - * {@link InjectorFactoryBuilder}. + * constructed instead of being obtained through the {@link InjectorBuilder}. * * @author Erik Brakkee */ -public class SimpleInjector { +public class SimpleInjector implements Injector { private InjectorCache cache;