summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationFactory.java
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-09-03 03:59:59 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-09-03 03:59:59 +0000
commit97e1dfe5d2661767604e8a771ec2e9099b2f4ccd (patch)
tree7acf8f7cffbe782d6ef9de47b5f6c1949aa6ca5b /branches/sca-java-1.x/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationFactory.java
parent6b614afbc3f08ded00a70bf9cf976d9bad12b4a7 (diff)
TUSCANY-3247 - Making interfaces and instantiatng widget factory via extension point mechanism
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@810774 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--branches/sca-java-1.x/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationFactory.java19
1 files changed, 3 insertions, 16 deletions
diff --git a/branches/sca-java-1.x/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationFactory.java b/branches/sca-java-1.x/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationFactory.java
index 2493b97f5c..9ca8c59e6c 100644
--- a/branches/sca-java-1.x/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationFactory.java
+++ b/branches/sca-java-1.x/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationFactory.java
@@ -19,27 +19,14 @@
package org.apache.tuscany.sca.implementation.widget;
-import org.apache.tuscany.sca.assembly.AssemblyFactory;
-import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
-import org.apache.tuscany.sca.interfacedef.java.JavaInterfaceFactory;
/**
* Factory for the widget implementation model.
*
* @version $Rev$ $Date$
*/
-public class WidgetImplementationFactory {
+public interface WidgetImplementationFactory {
- private AssemblyFactory assemblyFactory;
- private JavaInterfaceFactory javaFactory;
+ WidgetImplementation createWidgetImplementation();
- public WidgetImplementationFactory(ModelFactoryExtensionPoint modelFactories) {
- assemblyFactory = modelFactories.getFactory(AssemblyFactory.class);
- javaFactory = modelFactories.getFactory(JavaInterfaceFactory.class);
- }
-
- public WidgetImplementation createWidgetImplementation() {
- return new WidgetImplementation(assemblyFactory, javaFactory);
- }
-
-}
+} \ No newline at end of file