* @return Scope.
*/
public Scope start() {
- Scope scope = new DefaultScope(getProvidedInterfaces());
+ Scope scope = new DefaultScope(getProvidedInterfaces().toArray());
return super.start(scope);
}
protected Scope doStart(Scope aExternalScope) {
checkSealed();
validate();
- Scope scope = new DefaultScope(getProvidedInterfaces(), aExternalScope);
+ Scope scope = new DefaultScope(getProvidedInterfaces().toArray(), aExternalScope);
ComponentGraph graph = doStartOptionalDryRun(scope, false);
exposeProvidedInterfaces(graph, aExternalScope, scope);
seal();