diff options
Diffstat (limited to 'sandbox/sebastien/java/embed/modules/node-impl/src')
-rw-r--r-- | sandbox/sebastien/java/embed/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sandbox/sebastien/java/embed/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java b/sandbox/sebastien/java/embed/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java index fc975c0072..f7a439699e 100644 --- a/sandbox/sebastien/java/embed/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java +++ b/sandbox/sebastien/java/embed/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java @@ -33,6 +33,7 @@ import java.net.URL; import java.security.AccessController; import java.security.PrivilegedAction; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -77,6 +78,7 @@ import org.apache.tuscany.sca.node.configuration.BindingConfiguration; import org.apache.tuscany.sca.node.configuration.ContributionConfiguration; import org.apache.tuscany.sca.node.configuration.DeploymentComposite; import org.apache.tuscany.sca.node.configuration.NodeConfiguration; +import org.apache.tuscany.sca.node.configuration.impl.NodeConfigurationImpl; import org.apache.tuscany.sca.runtime.DomainRegistryFactory; import org.apache.tuscany.sca.runtime.EndpointReferenceBinder; import org.apache.tuscany.sca.runtime.EndpointRegistry; @@ -123,6 +125,12 @@ public class NodeFactoryImpl extends NodeFactory { return node; } + @SuppressWarnings("unchecked") + @Override + public Node createNode(List<?> contributions) { + return new NodeImpl(this, new NodeConfigurationImpl(), new ArrayList<Contribution>((List<Contribution>)contributions)); + } + protected void addNode(NodeConfiguration configuration, Node node) { nodes.put(getNodeKey(configuration), node); } |