git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Started work on componentizing the current user management.
[utils]
/
system
/
spring
/
src
/
main
/
java
/
org
/
wamblee
/
system
/
spring
/
RequiredServiceBean.java
diff --git
a/system/spring/src/main/java/org/wamblee/system/spring/RequiredServiceBean.java
b/system/spring/src/main/java/org/wamblee/system/spring/RequiredServiceBean.java
index 88ebed1f39b600fd38be8790b6aefe068de0c8ba..2e72f733825556002864917afda508e8acdf0e52 100644
(file)
--- a/
system/spring/src/main/java/org/wamblee/system/spring/RequiredServiceBean.java
+++ b/
system/spring/src/main/java/org/wamblee/system/spring/RequiredServiceBean.java
@@
-35,19
+35,20
@@
class RequiredServiceBean implements FactoryBean {
* @param aId Id of the bean in the service registry.
*/
public RequiredServiceBean(String aId) {
* @param aId Id of the bean in the service registry.
*/
public RequiredServiceBean(String aId) {
- RequiredInterface[] required = SpringComponent.THIS.get().getRequired
Servi
ces();
+ RequiredInterface[] required = SpringComponent.THIS.get().getRequired
Interfa
ces();
for ( RequiredInterface intf: required) {
if ( intf.getName().equals(aId)) {
_required = intf;
return;
}
}
for ( RequiredInterface intf: required) {
if ( intf.getName().equals(aId)) {
_required = intf;
return;
}
}
- throw new SystemAssemblyException("Cannot resolve
provid
ed component '" + aId + "'");
+ throw new SystemAssemblyException("Cannot resolve
requir
ed component '" + aId + "'");
}
@Override
public Object getObject() throws Exception {
}
@Override
public Object getObject() throws Exception {
- return _required.getImplementation(Object.class);
+ return SpringComponent.SCOPE.get().getInterfaceImplementation(
+ _required.getProvider(), Object.class);
}
@Override
}
@Override