CVS: jcontainer/loom/engine/src/java/org/jcontainer/loom/components/util/infobuilder BlockInfoReader.java,1.2,1.3
Peter Donald <pdonald-yCVjj/[email protected]> Sat, 29 Nov 2003 07:44:59 -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/infobuilder
In directory hogshead.codehaus.org:/tmp/cvs-serv31016/loom/engine/src/java/org/jcontainer/loom/components/util/infobuilder
Modified Files:
BlockInfoReader.java
Log Message:
Remove email addie
Index: BlockInfoReader.java
===================================================================
RCS file: /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/util/infobuilder/BlockInfoReader.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- BlockInfoReader.java 18 Oct 2003 07:29:55 -0000 1.2
+++ BlockInfoReader.java 29 Nov 2003 13:44:26 -0000 1.3
@@ -18,17 +18,17 @@
import org.realityforge.metaclass.model.Attribute;
/**
- * A BlockInfoReader is responsible for building ComponentInfo
- * objects from DNA MetaClass descriptors.
+ * A BlockInfoReader is responsible for building ComponentInfo objects from DNA
+ * MetaClass descriptors.
*
- * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
+ * @author Peter Donald
* @version $Revision$ $Date$
*/
public final class BlockInfoReader
{
/**
- * Create a ComponentInfo object for specified
- * classname, in specified ClassLoader.
+ * Create a ComponentInfo object for specified classname, in specified
+ * ClassLoader.
*
* @param type The Components type
* @return the created ComponentInfo
@@ -41,7 +41,9 @@
if( null == attribute )
{
final String message =
- "Type " + type.getName() + " does not specify the " +
+ "Type " +
+ type.getName() +
+ " does not specify the " +
"required MetaClass attributes to be a Component";
throw new Exception( message );
}
@@ -67,7 +69,8 @@
private SchemaDescriptor buildConfigurationSchema( final Class type )
{
final Class[] types =
- new Class[]{org.apache.avalon.framework.configuration.Configuration.class};
+ new Class[]{
+ org.apache.avalon.framework.configuration.Configuration.class};
try
{
final Method method = type.getMethod( "configure", types );
@@ -88,8 +91,8 @@
}
/**
- * A utility method to build an array of DependencyDescriptor
- * objects from specified configuration and classname.
+ * A utility method to build an array of DependencyDescriptor objects from
+ * specified configuration and classname.
*
* @param type the component type
* @return the created DependencyDescriptor
@@ -115,7 +118,8 @@
deps.add( new DependencyDescriptor( key, depType, optional ) );
}
- return (DependencyDescriptor[])deps.toArray( DependencyDescriptor.EMPTY_SET );
+ return (DependencyDescriptor[])deps.toArray(
+ DependencyDescriptor.EMPTY_SET );
}
/**
@@ -129,7 +133,8 @@
try
{
final Class[] types1 =
- new Class[]{org.apache.avalon.framework.component.ComponentManager.class};
+ new Class[]{
+ org.apache.avalon.framework.component.ComponentManager.class};
return type.getMethod( "compose", types1 );
}
catch( final NoSuchMethodException nsme )
@@ -138,7 +143,8 @@
try
{
final Class[] types2 =
- new Class[]{org.apache.avalon.framework.service.ServiceManager.class};
+ new Class[]{
+ org.apache.avalon.framework.service.ServiceManager.class};
return type.getMethod( "service", types2 );
}
catch( NoSuchMethodException e )
@@ -148,8 +154,8 @@
}
/**
- * A utility method to build an array of ServiceDescriptor
- * objects from specified configuraiton.
+ * A utility method to build an array of ServiceDescriptor objects from
+ * specified configuraiton.
*
* @param type the type
* @return the created ServiceDescriptor
@@ -158,7 +164,8 @@
{
final List services = new ArrayList();
- final Attribute[] attributes = Attributes.getAttributes( type, "dna.service" );
+ final Attribute[] attributes = Attributes.getAttributes( type,
+ "dna.service" );
for( int i = 0; i < attributes.length; i++ )
{
final Attribute attribute = attributes[ i ];
@@ -166,6 +173,7 @@
services.add( new ServiceDescriptor( serviceType ) );
}
- return (ServiceDescriptor[])services.toArray( ServiceDescriptor.EMPTY_SET );
+ return (ServiceDescriptor[])services.toArray(
+ ServiceDescriptor.EMPTY_SET );
}
}