From 132f22106f97437d026bf35eaff595be5eebab34 Mon Sep 17 00:00:00 2001 From: rfeng Date: Wed, 20 May 2009 19:16:22 +0000 Subject: Refactor the default node config factory so that it doesn't require the import for NodeConfigurationFactoryImpl git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@776809 13f79535-47bb-0310-9956-ffa450edef68 --- .../DefaultNodeConfigurationFactory.java | 20 +++++++++++++++++++- .../impl/NodeConfigurationFactoryImpl.java | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) (limited to 'java/sca/modules/node-api/src/main') diff --git a/java/sca/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/DefaultNodeConfigurationFactory.java b/java/sca/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/DefaultNodeConfigurationFactory.java index 53e26fc9ad..8bc4b7d493 100644 --- a/java/sca/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/DefaultNodeConfigurationFactory.java +++ b/java/sca/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/DefaultNodeConfigurationFactory.java @@ -24,5 +24,23 @@ import org.apache.tuscany.sca.node.configuration.impl.NodeConfigurationFactoryIm /** * Default NodeConfigurationFactory */ -public class DefaultNodeConfigurationFactory extends NodeConfigurationFactoryImpl implements NodeConfigurationFactory { +public class DefaultNodeConfigurationFactory implements NodeConfigurationFactory { + private NodeConfigurationFactory factory = new NodeConfigurationFactoryImpl(); + + public BindingConfiguration createBindingConfiguration() { + return factory.createBindingConfiguration(); + } + + public ContributionConfiguration createContributionConfiguration() { + return factory.createContributionConfiguration(); + } + + public DeploymentComposite createDeploymentComposite() { + return factory.createDeploymentComposite(); + } + + public NodeConfiguration createNodeConfiguration() { + return factory.createNodeConfiguration(); + } + } diff --git a/java/sca/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/impl/NodeConfigurationFactoryImpl.java b/java/sca/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/impl/NodeConfigurationFactoryImpl.java index fe5e9012cf..9396adc87d 100644 --- a/java/sca/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/impl/NodeConfigurationFactoryImpl.java +++ b/java/sca/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/impl/NodeConfigurationFactoryImpl.java @@ -28,7 +28,7 @@ import org.apache.tuscany.sca.node.configuration.NodeConfigurationFactory; /** * The factory to create java models related to the node configuration */ -public abstract class NodeConfigurationFactoryImpl implements NodeConfigurationFactory { +public class NodeConfigurationFactoryImpl implements NodeConfigurationFactory { /** * Create a new instance of NodeConfiguration * @return -- cgit v1.2.3