diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-04-21 11:47:12 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-04-21 11:47:12 +0000 |
commit | 7ddb5d51b76ecdc4ffd49c25f5f70aed15e98a84 (patch) | |
tree | d95aad0294f6c285e68761d0c83adb4a4c9b43ab /sca-java-2.x/trunk/modules/node-api/src | |
parent | 9d1e120ab685938ab876f0bbd47dde2c8c94ef57 (diff) |
When config null then return noargs newInstance so it gets initialized with the default properties
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@936268 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/node-api/src')
-rw-r--r-- | sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 082b6e612f..d7370ba513 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 @@ -220,7 +220,7 @@ public abstract class NodeFactory extends DefaultNodeConfigurationFactory { public static NodeFactory newInstance(String configURI) { Properties properties; if (configURI == null || configURI.length() < 1) { - properties = new Properties(); + return newInstance(); } else if (configURI.startsWith("properties:")) { try { properties = loadProperties(configURI.substring("properties:".length())); |