diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-20 19:16:22 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-20 19:16:22 +0000 |
commit | 132f22106f97437d026bf35eaff595be5eebab34 (patch) | |
tree | 161ed4aec5cbf0a2e034a37bec6f82e75913b9c8 /java/sca/modules/node-api/src/main | |
parent | af939977016abf2ca84a0fe8b1a418dffa7c0f58 (diff) |
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
Diffstat (limited to 'java/sca/modules/node-api/src/main')
2 files changed, 20 insertions, 2 deletions
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
|