CVS: jcontainer/loom/engine/src/java/org/jcontainer/loom/components/util/factory ComponentFactory.java,1.2,1.3 DefaultComponentFactory.java,1.3,1.4
Peter Donald <pdonald-yCVjj/[email protected]> Sat, 29 Nov 2003 07:44:56 -0600
| Newsgroups | gmane.comp.java.jcontainer.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/util/factory
In directory hogshead.codehaus.org:/tmp/cvs-serv31016/loom/engine/src/java/org/jcontainer/loom/components/util/factory
Modified Files:
ComponentFactory.java DefaultComponentFactory.java
Log Message:
Remove email addie
Index: ComponentFactory.java
===================================================================
RCS file: /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/util/factory/ComponentFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ComponentFactory.java 3 Nov 2003 06:17:58 -0000 1.2
+++ ComponentFactory.java 29 Nov 2003 13:44:21 -0000 1.3
@@ -10,23 +10,20 @@
import org.jcontainer.loom.components.util.info.ComponentInfo;
/**
- * This interface defines the mechanism via which a
- * component or its associated ComponentInfo can
- * be created.
+ * This interface defines the mechanism via which a component or its associated
+ * ComponentInfo can be created.
*
- * <p>Usually the component or ComponentBundle will just be loaded
- * from a particular ClassLoader. However if a developer wanted
- * to dynamically assemble applications they could implement
- * a custom factory that created components via non-standard
- * mechanisms (say by wrapping remote, CORBA, or other style
+ * <p>Usually the component or ComponentBundle will just be loaded from a
+ * particular ClassLoader. However if a developer wanted to dynamically assemble
+ * applications they could implement a custom factory that created components
+ * via non-standard mechanisms (say by wrapping remote, CORBA, or other style
* objects).</p>
*
- * <p>The methods take a <code>implementationKey</code> parameter
- * and usually this represents the class name of the component.
- * However in alternative component systems this may designate
- * objects via different mechanisms.</p>
+ * <p>The methods take a <code>implementationKey</code> parameter and usually
+ * this represents the class name of the component. However in alternative
+ * component systems this may designate objects via different mechanisms.</p>
*
- * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
+ * @author Peter Donald
* @version $Revision$ $Date$
*/
public interface ComponentFactory
@@ -34,7 +31,8 @@
/**
* Create a ComponentInfo for component specified by implementationKey.
*
- * @param implementationKey the key indicating type of component (usually classname)
+ * @param implementationKey the key indicating type of component (usually
+ * classname)
* @return the ComponentInfo for component
* @throws Exception if unable to create Info object
*/
@@ -42,10 +40,10 @@
throws Exception;
/**
- * Create an instance of component with specified
- * implementationKey.
+ * Create an instance of component with specified implementationKey.
*
- * @param implementationKey the key indicating type of component (usually classname)
+ * @param implementationKey the key indicating type of component (usually
+ * classname)
* @return an instance of component
* @throws java.lang.Exception if unable to create component
*/
Index: DefaultComponentFactory.java
===================================================================
RCS file: /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/util/factory/DefaultComponentFactory.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- DefaultComponentFactory.java 3 Nov 2003 06:17:58 -0000 1.3
+++ DefaultComponentFactory.java 29 Nov 2003 13:44:21 -0000 1.4
@@ -13,29 +13,25 @@
import org.jcontainer.loom.components.util.infobuilder.BlockInfoReader;
/**
- * The default implementation of ComponentFactory
- * that simply creates components from a ClassLoader.
+ * The default implementation of ComponentFactory that simply creates components
+ * from a ClassLoader.
*
- * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
+ * @author Peter Donald
* @version $Revision$ $Date$
*/
public class DefaultComponentFactory
implements ComponentFactory
{
- /**
- * Cache of ComponentInfo objects.
- */
+ /** Cache of ComponentInfo objects. */
private final Map m_infos = new WeakHashMap();
/**
- * The utility class that is used when building info
- * objects for Components.
+ * The utility class that is used when building info objects for
+ * Components.
*/
private final BlockInfoReader m_infoBuilder = new BlockInfoReader();
- /**
- * The classloader from which all resources are loaded.
- */
+ /** The classloader from which all resources are loaded. */
private final ClassLoader m_classLoader;
/**
@@ -53,8 +49,8 @@
}
/**
- * Create a component by creating info for class
- * with specified name and loaded from factorys ClassLoader.
+ * Create a component by creating info for class with specified name and
+ * loaded from factorys ClassLoader.
*
* @see ComponentFactory#createInfo
*/
@@ -72,8 +68,8 @@
}
/**
- * Create a component by creating instance of class
- * with specified name and loaded from factorys ClassLoader.
+ * Create a component by creating instance of class with specified name and
+ * loaded from factorys ClassLoader.
*
* @see ComponentFactory#createComponent
*/
@@ -91,7 +87,8 @@
* @return the created ComponentInfo
* @throws Exception if unabel to create componentInfo
*/
- protected ComponentInfo createComponentInfo( final String implementationKey )
+ protected ComponentInfo createComponentInfo(
+ final String implementationKey )
throws Exception
{
final Class type = getClassLoader().loadClass( implementationKey );