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]
/
system
/
spring
/
src
/
main
/
java
/
org
/
wamblee
/
system
/
spring
/
SpringComponent.java
diff --git
a/system/spring/src/main/java/org/wamblee/system/spring/SpringComponent.java
b/system/spring/src/main/java/org/wamblee/system/spring/SpringComponent.java
index 09ef341175657aae0e7da781a6299c2b5cf0a95e..8d50bf280d53b6d09f562519cbecdc20c9526e11 100644
(file)
--- a/
system/spring/src/main/java/org/wamblee/system/spring/SpringComponent.java
+++ b/
system/spring/src/main/java/org/wamblee/system/spring/SpringComponent.java
@@
-135,7
+135,7
@@
public class SpringComponent extends AbstractComponent {
throw new IllegalArgumentException(getQualifiedName() + ": service '"
+ name + "' is null");
}
throw new IllegalArgumentException(getQualifiedName() + ": service '"
+ name + "' is null");
}
- add
Servi
ce(_provided.get(name), svc);
+ add
Interfa
ce(_provided.get(name), svc);
}
}
}
}
@@
-162,5
+162,8
@@
public class SpringComponent extends AbstractComponent {
@Override
protected void doStop() {
_context.close();
@Override
protected void doStop() {
_context.close();
+ for (ProvidedInterface provided: getProvidedInterfaces()) {
+ removeInterface(provided);
+ }
}
}
}
}