git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[utils]
/
support
/
inject
/
src
/
main
/
java
/
org
/
wamblee
/
inject
/
Injectable.java
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 b44192cfa22b81de14bb215fa535f5ed9baed3eb..a87c236b2cd33c8330bf62893ae42926b4da2004 100644
(file)
--- 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() {
* 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);
}
injector.inject(this);
}
+
/**
* Gets the default injector.
/**
* Gets the default injector.