From: erik Date: Thu, 22 Jul 2010 11:53:54 +0000 (+0000) Subject: (no commit message) X-Git-Tag: wamblee-utils-0.4~40 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=e3b6aeebef14f365e2f5e47dfbfe020c41e0c115;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.