X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Finject%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Finject%2Fpackage-info.java;h=dd90c5525938d18351830eec6b80462423bb8a65;hb=6c7d44bbf01b838718c0111af3368c3023ebba19;hp=c07c8ab89a81d11168956f4f36b7c956eeddf534;hpb=43f6c5285c83202b485e25e8ec20122339955a52;p=utils diff --git a/support/inject/src/main/java/org/wamblee/inject/package-info.java b/support/inject/src/main/java/org/wamblee/inject/package-info.java index c07c8ab8..dd90c552 100644 --- a/support/inject/src/main/java/org/wamblee/inject/package-info.java +++ b/support/inject/src/main/java/org/wamblee/inject/package-info.java @@ -23,14 +23,21 @@ * *

Users of this package will typically use:

* * + *

For example, to inject into a given object, use:

+ *
+ *   Injector injector = InjectorBuilder.getInjector();
+ *   MyPojo pojo = new MyPojo();
+ *   injector.inject(pojo);
+ * 
+ * *

Implementors of the package

* *

Of interest to implementations of this package integrating with dependency injection frameworks are:

@@ -38,7 +45,7 @@ *
  • Injector: The main interface to be implemented is the {@link Injector}, by which injection is done.
  • *
  • InjectorFactory: Injectors are created by an implementation of the {@link InjectorFactory} which * creates injectors based on the class.
  • - *
  • InjectorFactoryBuilder: Implementations must make their InjectorFactory + *
  • InjectorBuilder: Implementations must make their InjectorFactory * available through the ServiceLoader mechanism. *
  • * @@ -49,4 +56,3 @@ */ package org.wamblee.inject; -