From e3b6aeebef14f365e2f5e47dfbfe020c41e0c115 Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 22 Jul 2010 11:53:54 +0000 Subject: [PATCH] --- .../src/main/java/org/wamblee/inject/Injectable.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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. -- 2.31.1