From: Erik Brakkee Date: Thu, 22 Jul 2010 11:53:54 +0000 (+0000) Subject: (no commit message) X-Git-Tag: wamblee-utils-0.7~220 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;ds=inline;h=5268b970af35b59ca39dc78b8c5aabcd4a296f6e;p=utils --- diff --git a/support/inject/src/main/java/org/wamblee/inject/Injectable.java b/support/inject/src/main/java/org/wamblee/inject/Injectable.java index b44192cf..a87c236b 100644 --- a/support/inject/src/main/java/org/wamblee/inject/Injectable.java +++ b/support/inject/src/main/java/org/wamblee/inject/Injectable.java @@ -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.