From 4cac6f63be4e919b1d97624bb0e255a39e600190 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Tue, 31 Aug 2010 00:15:25 +0000 Subject: Add a test case showing how to register a ProviderFactory instance. Minor cleanup, add a createNode method that takes a list of contributions and remove reference to NodeFactory implementation class. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@991044 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/tuscany/sca/node/NodeFactory.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sca-java-2.x/trunk/modules/node-api') diff --git a/sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java b/sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java index 2d2df84f42..95d1adc92e 100644 --- a/sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java +++ b/sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java @@ -609,6 +609,13 @@ public abstract class NodeFactory extends DefaultNodeConfigurationFactory { * @return The SCA node */ public abstract Node createNode(NodeConfiguration configuration); + + /** + * Create an SCA node from a list of pre-built o.a.t.sca.contribution.Contribution objects. + * Pass java.lang.Objects for now as this class doesn't have direct dependencies on + * o.a.t.sca.contribution.Contribution. + */ + public abstract Node createNode(List contributions); /** * Create the node configuration from the XML document -- cgit v1.2.3