From e416b6615af1bc2b2e52dc34b7bda7421b054de2 Mon Sep 17 00:00:00 2001 From: lresende Date: Fri, 3 Apr 2009 08:18:49 +0000 Subject: TUSCANY-2878 - JavaScript Generator extension point. Used by implementation.widget to allow multiple implementations of js generator (e.g. tuscany specific and dojo based) git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@761561 13f79535-47bb-0310-9956-ffa450edef68 --- ...ComponentJavaScriptGeneratorExtensionPoint.java | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/ComponentJavaScriptGeneratorExtensionPoint.java (limited to 'branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/ComponentJavaScriptGeneratorExtensionPoint.java') diff --git a/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/ComponentJavaScriptGeneratorExtensionPoint.java b/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/ComponentJavaScriptGeneratorExtensionPoint.java new file mode 100644 index 0000000000..c2cba59362 --- /dev/null +++ b/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/ComponentJavaScriptGeneratorExtensionPoint.java @@ -0,0 +1,56 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.core.web; + +import java.util.List; + +import javax.xml.namespace.QName; + +/** + * Widget component script generator extension pointinterface + * + * @version $Rev$ $Date$ + */ +public interface ComponentJavaScriptGeneratorExtensionPoint { + + /** + * Add a component script generator + * @param componentScriptGenerator + */ + void addComponentJavaScriptGenerator(ComponentJavaScriptGenerator componentScriptGenerator); + + /** + * Remove a component script generator + * @param componentScriptGenerator + */ + void removeComponentJavaScriptGenerator(ComponentJavaScriptGenerator componentScriptGenerator); + + /** + * Get a component scrpt generator instance based on QName + * @param bindingName + * @return + */ + ComponentJavaScriptGenerator getComponentJavaScriptGenerator(QName bindingName); + + /** + * Get a list of component script generator instances + */ + List getComponentJavaScriptGenerators(); +} -- cgit v1.2.3