Now the component provides read-only access to the interfaces.
[utils] / system / spring / src / main / java / org / wamblee / system / spring / SpringComponent.java
index 83a5133bd74122ef48213941ddffcd9ce6137f6b..c1e3a7b302f9098858cc468886b48e1f256bc3cb 100644 (file)
@@ -113,7 +113,7 @@ public class SpringComponent extends AbstractComponent<Scope> {
                SpringComponent old = THIS.get();
                Scope oldScope = SCOPE.get();
                THIS.set(this);
-               Scope scope = new DefaultScope(getProvidedInterfaces(), aExternalScope);
+               Scope scope = new DefaultScope(getProvidedInterfaces().toArray(), aExternalScope);
                SCOPE.set(scope);
                try {
                        GenericApplicationContext parentContext = new GenericApplicationContext();