From 97e1dfe5d2661767604e8a771ec2e9099b2f4ccd Mon Sep 17 00:00:00 2001 From: lresende Date: Thu, 3 Sep 2009 03:59:59 +0000 Subject: 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 --- .../widget/WidgetImplementationFactory.java | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'branches/sca-java-1.x/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationFactory.java') 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 -- cgit v1.2.3