git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[utils]
/
support
/
inject
/
src
/
main
/
java
/
org
/
wamblee
/
inject
/
package-info.java
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 c07c8ab89a81d11168956f4f36b7c956eeddf534..dd90c5525938d18351830eec6b80462423bb8a65 100644
(file)
--- 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
@@
*
* <p>Users of this package will typically use: </p>
* <ul>
*
* <p>Users of this package will typically use: </p>
* <ul>
- * <li> <code>
SimpleInjector</code>: This is the class
used to perform injection of dependencies into
+ * <li> <code>
Injector</code>: This is the interface
used to perform injection of dependencies into
* a given object. </li>
* <li> <code>Injectable</code>: By subclassing this class, the classes automatically get their
* dependencies injected at construction. </li>
* a given object. </li>
* <li> <code>Injectable</code>: By subclassing this class, the classes automatically get their
* dependencies injected at construction. </li>
- * <li> <code>Injector
FactoryBuilder</code>: To get an injector factory reference for use in the
- *
<code>SimpleInjector</code
>
+ * <li> <code>Injector
Builder</code>: To get an instance of the <code>Injector</code>.
+ *
</li
>
* </ul>
*
* </ul>
*
+ * <p>For example, to inject into a given object, use:</p>
+ * <pre>
+ * Injector injector = InjectorBuilder.getInjector();
+ * MyPojo pojo = new MyPojo();
+ * injector.inject(pojo);
+ * </pre>
+ *
* <h2>Implementors of the package</h2>
*
* <p>Of interest to implementations of this package integrating with dependency injection frameworks are: </p>
* <h2>Implementors of the package</h2>
*
* <p>Of interest to implementations of this package integrating with dependency injection frameworks are: </p>
@@
-38,7
+45,7
@@
* <li> <code>Injector</code>: The main interface to be implemented is the {@link Injector}, by which injection is done.</li>
* <li> <code>InjectorFactory</code>: Injectors are created by an implementation of the {@link InjectorFactory} which
* creates injectors based on the class.</li>
* <li> <code>Injector</code>: The main interface to be implemented is the {@link Injector}, by which injection is done.</li>
* <li> <code>InjectorFactory</code>: Injectors are created by an implementation of the {@link InjectorFactory} which
* creates injectors based on the class.</li>
- * <li> <code>Injector
Factory
Builder</code>: Implementations must make their <code>InjectorFactory</code>
+ * <li> <code>InjectorBuilder</code>: Implementations must make their <code>InjectorFactory</code>
* available through the <code>ServiceLoader</code> mechanism.
* </li>
* </ul>
* available through the <code>ServiceLoader</code> mechanism.
* </li>
* </ul>
@@
-49,4
+56,3
@@
*/
package org.wamblee.inject;
*/
package org.wamblee.inject;
-