summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/DefaultComponentJavaScriptGeneratorExtensionPoint.java12
-rw-r--r--branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/DefaultJavascriptProxyFactoryExtensionPoint.java11
2 files changed, 17 insertions, 6 deletions
diff --git a/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/DefaultComponentJavaScriptGeneratorExtensionPoint.java b/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/DefaultComponentJavaScriptGeneratorExtensionPoint.java
index 85b1a7aead..121baba47b 100644
--- a/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/DefaultComponentJavaScriptGeneratorExtensionPoint.java
+++ b/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/DefaultComponentJavaScriptGeneratorExtensionPoint.java
@@ -39,6 +39,12 @@ import org.apache.tuscany.sca.monitor.MonitorFactory;
import org.apache.tuscany.sca.monitor.Problem;
import org.apache.tuscany.sca.monitor.Problem.Severity;
+
+/**
+ * Default extension point for widget component script generator
+ *
+ * @version $Rev$ $Date$
+ */
public class DefaultComponentJavaScriptGeneratorExtensionPoint implements ComponentJavaScriptGeneratorExtensionPoint {
private final List<ComponentJavaScriptGenerator> generators = new ArrayList<ComponentJavaScriptGenerator>();
private final Map<QName, ComponentJavaScriptGenerator> generatorsByQName = new HashMap<QName, ComponentJavaScriptGenerator>();
@@ -90,12 +96,12 @@ public class DefaultComponentJavaScriptGeneratorExtensionPoint implements Compon
public ComponentJavaScriptGenerator getComponentJavaScriptGenerator(QName bindingName) {
- loadFacories();
+ loadFactories();
return generatorsByQName.get(bindingName);
}
public List<ComponentJavaScriptGenerator> getComponentJavaScriptGenerators() {
- loadFacories();
+ loadFactories();
return this.generators;
}
@@ -108,7 +114,7 @@ public class DefaultComponentJavaScriptGeneratorExtensionPoint implements Compon
* Lazily load artifact processors registered in the extension point.
*/
@SuppressWarnings("unchecked")
- private synchronized void loadFacories() {
+ private synchronized void loadFactories() {
if (loaded) {
return;
}
diff --git a/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/DefaultJavascriptProxyFactoryExtensionPoint.java b/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/DefaultJavascriptProxyFactoryExtensionPoint.java
index 78e8094a53..1c6097834f 100644
--- a/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/DefaultJavascriptProxyFactoryExtensionPoint.java
+++ b/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/DefaultJavascriptProxyFactoryExtensionPoint.java
@@ -38,6 +38,11 @@ import org.apache.tuscany.sca.monitor.MonitorFactory;
import org.apache.tuscany.sca.monitor.Problem;
import org.apache.tuscany.sca.monitor.Problem.Severity;
+/**
+ * Default extension point for javascript proxy factories
+ *
+ * @version $Rev$ $Date$
+ */
public class DefaultJavascriptProxyFactoryExtensionPoint implements JavascriptProxyFactoryExtensionPoint {
private final Map<QName, JavascriptProxyFactory> factoriesByQName = new HashMap<QName, JavascriptProxyFactory>();
private final Map<Class<?>, JavascriptProxyFactory> factoriesByType = new HashMap<Class<?>, JavascriptProxyFactory>();
@@ -87,12 +92,12 @@ public class DefaultJavascriptProxyFactoryExtensionPoint implements JavascriptPr
}
public JavascriptProxyFactory getProxyFactory(QName bindingName) {
- loadFacories();
+ loadFactories();
return factoriesByQName.get(bindingName);
}
public JavascriptProxyFactory getProxyFactory(Class<?> bindingType) {
- loadFacories();
+ loadFactories();
Class<?>[] classes = bindingType.getInterfaces();
for (Class<?> c : classes) {
JavascriptProxyFactory proxyFactory = factoriesByType.get(c);
@@ -175,7 +180,7 @@ public class DefaultJavascriptProxyFactoryExtensionPoint implements JavascriptPr
/**
* Lazily load artifact processors registered in the extension point.
*/
- private synchronized void loadFacories() {
+ private synchronized void loadFactories() {
if (loaded) {
return;
}