X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Finject%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Finject%2FSimpleInjector.java;h=449a65a33162bf97114510bbafd8879e5fcce8fc;hb=94ddca39fadbe7931a17c179424afd123bd2863a;hp=b41eb4c35f65cd6faa5f577bc031edd076b9d5df;hpb=4a575582a5c2999bd816b197d9cf274b4b3ddcd7;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 b41eb4c3..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,13 +47,12 @@ 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 InjectorBuilder}. + * constructed instead of being obtained through the {@link InjectorBuilder}. * * @author Erik Brakkee */