From 365c855d608d494458f6ee50b4b0d82dfd721e84 Mon Sep 17 00:00:00 2001 From: lresende Date: Fri, 3 Apr 2009 22:26:06 +0000 Subject: Minor typo on method declaration Adding some class description javadoc git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@761822 13f79535-47bb-0310-9956-ffa450edef68 --- .../DefaultComponentJavaScriptGeneratorExtensionPoint.java | 12 +++++++++--- .../web/DefaultJavascriptProxyFactoryExtensionPoint.java | 11 ++++++++--- 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 generators = new ArrayList(); private final Map generatorsByQName = new HashMap(); @@ -90,12 +96,12 @@ public class DefaultComponentJavaScriptGeneratorExtensionPoint implements Compon public ComponentJavaScriptGenerator getComponentJavaScriptGenerator(QName bindingName) { - loadFacories(); + loadFactories(); return generatorsByQName.get(bindingName); } public List 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 factoriesByQName = new HashMap(); private final Map, JavascriptProxyFactory> factoriesByType = new HashMap, 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; } -- cgit v1.2.3