(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Thu, 22 Jul 2010 11:53:54 +0000 (11:53 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Thu, 22 Jul 2010 11:53:54 +0000 (11:53 +0000)
support/inject/src/main/java/org/wamblee/inject/Injectable.java

index b44192cfa22b81de14bb215fa535f5ed9baed3eb..a87c236b2cd33c8330bf62893ae42926b4da2004 100644 (file)
@@ -36,8 +36,18 @@ public abstract class Injectable {
      * Inheritance style constructor.
      */
     protected Injectable() {
+        inject();
+    }
+
+
+    /**
+     * Inject references. This can be useful when injection is to be done again after construction
+     * to obtain new references or after zeroing out of the references. 
+     */
+    public void inject() {
         injector.inject(this);
     }    
+   
     
     /**
      * Gets the default injector.