*/
package org.wamblee.inject;
-
/**
* The main entry point for programmatic dependency injection. A different
* {@link InjectorFactory} can be plugged in for testing.
* <p>
* Given the following class:
* </p>
+ *
* <pre>
* class Pojo {
* @EJB
* The <code>SimpleInjector</code> should be cached. This is because the
* <code>SimpleInjector</code> caches the {@link Injector} objects that it uses
* internally for performance. This is done because creation of these internal
- * <code>Injector</code> objects may be costly. Caching the simple injector makes sure
- * that a class is not analysed again for annotations every time injection is
- * used.
+ * <code>Injector</code> 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;