git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
now allowing components and interfaces to be added after construction.
[utils]
/
system
/
general
/
src
/
main
/
java
/
org
/
wamblee
/
system
/
core
/
DefaultScope.java
diff --git
a/system/general/src/main/java/org/wamblee/system/core/DefaultScope.java
b/system/general/src/main/java/org/wamblee/system/core/DefaultScope.java
index 8b0c88efe0e4b746a6d92dd5e9a49d1fe1446ddc..b57f51f64f01a04d743f626fc6e90fd00fae4c39 100644
(file)
--- a/
system/general/src/main/java/org/wamblee/system/core/DefaultScope.java
+++ b/
system/general/src/main/java/org/wamblee/system/core/DefaultScope.java
@@
-83,7
+83,7
@@
public class DefaultScope implements Scope {
}
@Override
}
@Override
- public <T> T
retrieve
InterfaceImplementation(ProvidedInterface aInterface,
+ public <T> T
get
InterfaceImplementation(ProvidedInterface aInterface,
Class<T> aType) {
if ( aInterface == null ) {
return null;
Class<T> aType) {
if ( aInterface == null ) {
return null;
@@
-96,7
+96,7
@@
public class DefaultScope implements Scope {
ProvidedInterfaceImplementation provided = _provided.get(id);
if (provided == null) {
for (Scope parent : _parents) {
ProvidedInterfaceImplementation provided = _provided.get(id);
if (provided == null) {
for (Scope parent : _parents) {
- T impl = parent.
retrieve
InterfaceImplementation(aInterface, aType);
+ T impl = parent.
get
InterfaceImplementation(aInterface, aType);
if ( impl != null ) {
return impl;
}
if ( impl != null ) {
return impl;
}