CVS: jcontainer/loom/engine/src/java/org/jcontainer/loom/components/util/verifier AssemblyVerifier.java,1.4,1.5 ComponentVerifier.java,1.1,1.2 SarVerifier.java,1.3,1.4
Peter Donald <pdonald-yCVjj/[email protected]> Sat, 29 Nov 2003 07:45:00 -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/verifier
In directory hogshead.codehaus.org:/tmp/cvs-serv31016/loom/engine/src/java/org/jcontainer/loom/components/util/verifier
Modified Files:
AssemblyVerifier.java ComponentVerifier.java SarVerifier.java
Log Message:
Remove email addie
Index: AssemblyVerifier.java
===================================================================
RCS file: /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/util/verifier/AssemblyVerifier.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- AssemblyVerifier.java 5 Nov 2003 07:27:08 -0000 1.4
+++ AssemblyVerifier.java 29 Nov 2003 13:44:27 -0000 1.5
@@ -19,28 +19,21 @@
import org.realityforge.salt.i18n.Resources;
/**
- * This Class verifies that Sars are valid. It performs a number
- * of checks to make sure that the Sar represents a valid
- * application and excluding runtime errors will start up validly.
- * Some of the checks it performs include;
+ * This Class verifies that Sars are valid. It performs a number of checks to
+ * make sure that the Sar represents a valid application and excluding runtime
+ * errors will start up validly. Some of the checks it performs include;
*
- * <ul>
- * <li>Verify names of Components contain only
- * letters, digits or the '_' character.</li>
- * <li>Verify that the names of the Components are unique to the
- * Assembly.</li>
- * <li>Verify that the specified dependeny mapping correspond to
- * dependencies specified in ComponentInfo files.</li>
- * <li>Verify that the inter-Component dependendencies are valid.
- * This essentially means that if Component A requires Service S
- * from Component B then Component B must provide Service S.</li>
- * <li>Verify that there are no circular dependendencies between
- * components.</li>
- * <li>Verify that the Class objects for component implement the
- * service interfaces.</li>
- * </ul>
+ * <ul> <li>Verify names of Components contain only letters, digits or the '_'
+ * character.</li> <li>Verify that the names of the Components are unique to the
+ * Assembly.</li> <li>Verify that the specified dependeny mapping correspond to
+ * dependencies specified in ComponentInfo files.</li> <li>Verify that the
+ * inter-Component dependendencies are valid. This essentially means that if
+ * Component A requires Service S from Component B then Component B must provide
+ * Service S.</li> <li>Verify that there are no circular dependendencies between
+ * components.</li> <li>Verify that the Class objects for component implement
+ * the service interfaces.</li> </ul>
*
- * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
+ * @author Peter Donald
* @version $Revision$ $Date$
*/
public class AssemblyVerifier
@@ -50,9 +43,9 @@
ResourceManager.getPackageResources( AssemblyVerifier.class );
/**
- * Validate and Verify the specified assembly (ie organization
- * of components). See the Class Javadocs for the rules and
- * regulations of assembly.
+ * Validate and Verify the specified assembly (ie organization of
+ * components). See the Class Javadocs for the rules and regulations of
+ * assembly.
*
* @param components the Components that make up assembly
* @throws Exception if an error occurs
@@ -84,7 +77,8 @@
}
/**
- * Verfiy that all Components have the needed dependencies specified correctly.
+ * Verfiy that all Components have the needed dependencies specified
+ * correctly.
*
* @param components the ComponentEntry objects for the components
* @throws Exception if an error occurs
@@ -104,7 +98,8 @@
* @param components the ComponentEntry objects for the components
* @throws Exception if an circular dependency error occurs
*/
- protected void verifyNoCircularDependencies( final ComponentProfile[] components )
+ protected void verifyNoCircularDependencies(
+ final ComponentProfile[] components )
throws Exception
{
for( int i = 0; i < components.length; i++ )
@@ -126,12 +121,14 @@
* @param stack the ???
* @throws Exception if an error occurs
*/
- protected void verifyNoCircularDependencies( final ComponentProfile component,
- final ComponentProfile[] components,
- final Stack stack )
+ protected void verifyNoCircularDependencies(
+ final ComponentProfile component,
+ final ComponentProfile[] components,
+ final Stack stack )
throws Exception
{
- final ComponentProfile[] dependencies = getDependencies( component, components );
+ final ComponentProfile[] dependencies = getDependencies( component,
+ components );
for( int i = 0; i < dependencies.length; i++ )
{
final ComponentProfile dependency = dependencies[ i ];
@@ -152,8 +149,8 @@
}
/**
- * Get a string defining path from top of stack till
- * it reaches specified component.
+ * Get a string defining path from top of stack till it reaches specified
+ * component.
*
* @param component the component
* @param stack the Stack
@@ -198,8 +195,9 @@
* @param components the total set of components in application
* @return the dependencies of component
*/
- protected ComponentProfile[] getDependencies( final ComponentProfile component,
- final ComponentProfile[] components )
+ protected ComponentProfile[] getDependencies(
+ final ComponentProfile component,
+ final ComponentProfile[] components )
{
final ArrayList dependencies = new ArrayList();
final DependencyDirective[] deps =
@@ -208,11 +206,13 @@
for( int i = 0; i < deps.length; i++ )
{
final String name = deps[ i ].getProviderName();
- final ComponentProfile other = getComponentProfile( name, components );
+ final ComponentProfile other = getComponentProfile( name,
+ components );
dependencies.add( other );
}
- return (ComponentProfile[])dependencies.toArray( new ComponentProfile[ 0 ] );
+ return (ComponentProfile[])dependencies.toArray(
+ new ComponentProfile[ 0 ] );
}
/**
@@ -221,7 +221,8 @@
* @param components the ComponentProfile objects for the components
* @throws Exception if an error occurs
*/
- protected void verifyDependencyReferences( final ComponentProfile[] components )
+ protected void verifyDependencyReferences(
+ final ComponentProfile[] components )
throws Exception
{
for( int i = 0; i < components.length; i++ )
@@ -231,18 +232,21 @@
}
/**
- * Verfiy that the inter-Component dependencies are valid for specified Component.
+ * Verfiy that the inter-Component dependencies are valid for specified
+ * Component.
*
* @param component the ComponentProfile object for the component
* @param others the ComponentProfile objects for the other components
* @throws Exception if an error occurs
*/
- protected void verifyDependencyReferences( final ComponentProfile component,
- final ComponentProfile[] others )
+ protected void verifyDependencyReferences(
+ final ComponentProfile component,
+ final ComponentProfile[] others )
throws Exception
{
final ComponentInfo info = component.getInfo();
- final DependencyDirective[] dependencies = component.getTemplate().getDependencies();
+ final DependencyDirective[] dependencies = component.getTemplate()
+ .getDependencies();
for( int i = 0; i < dependencies.length; i++ )
{
@@ -252,7 +256,8 @@
final String type = info.getDependency( key ).getComponentType();
//Get the other component that is providing service
- final ComponentProfile provider = getComponentProfile( providerName, others );
+ final ComponentProfile provider = getComponentProfile(
+ providerName, others );
if( null == provider )
{
final String message =
@@ -287,7 +292,7 @@
* @return the Component if found, else null
*/
protected ComponentProfile getComponentProfile( final String name,
- final ComponentProfile[] components )
+ final ComponentProfile[] components )
{
for( int i = 0; i < components.length; i++ )
{
@@ -324,8 +329,8 @@
}
/**
- * Return true if specified name is valid.
- * Valid names consist of letters, digits or the '_' character.
+ * Return true if specified name is valid. Valid names consist of letters,
+ * digits or the '_' character.
*
* @param name the name to check
* @return true if valid, false otherwise
@@ -347,8 +352,9 @@
}
/**
- * Verify that the names of the specified components and listeners are unique.
- * It is not valid for the same name to be used in multiple components.
+ * Verify that the names of the specified components and listeners are
+ * unique. It is not valid for the same name to be used in multiple
+ * components.
*
* @param components the Components
* @throws Exception if an error occurs
@@ -392,9 +398,9 @@
}
/**
- * Retrieve a list of DependencyDirective objects for ComponentProfile
- * and verify that there is a 1 to 1 map with dependencies specified
- * in ComponentInfo.
+ * Retrieve a list of DependencyDirective objects for ComponentProfile and
+ * verify that there is a 1 to 1 map with dependencies specified in
+ * ComponentInfo.
*
* @param component the ComponentProfile describing the component
* @throws Exception if an error occurs
@@ -448,8 +454,8 @@
}
/**
- * Return true if specified service reference matches any of the
- * candidate services.
+ * Return true if specified service reference matches any of the candidate
+ * services.
*
* @param type the service type
* @param candidates an array of candidate services
Index: ComponentVerifier.java
===================================================================
RCS file: /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/util/verifier/ComponentVerifier.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ComponentVerifier.java 26 Oct 2003 03:39:39 -0000 1.1
+++ ComponentVerifier.java 29 Nov 2003 13:44:27 -0000 1.2
@@ -23,35 +23,31 @@
import org.apache.avalon.framework.parameters.Parameterizable;
import org.apache.avalon.framework.parameters.Reparameterizable;
import org.apache.avalon.framework.service.Serviceable;
+import org.realityforge.metaclass.Attributes;
+import org.realityforge.metaclass.model.Attribute;
import org.realityforge.salt.i18n.ResourceManager;
import org.realityforge.salt.i18n.Resources;
-import org.realityforge.metaclass.model.Attribute;
-import org.realityforge.metaclass.Attributes;
/**
- * Utility class to help verify that component respects the
- * rules of an Avalon component.
+ * Utility class to help verify that component respects the rules of an Avalon
+ * component.
*
- * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
+ * @author Peter Donald
* @version $Revision$ $Date$
*/
public class ComponentVerifier
{
- /**
- * I18n utils.
- */
+ /** I18n utils. */
private static final Resources REZ =
ResourceManager.getPackageResources( ComponentVerifier.class );
/**
- * Constant for array of 0 classes. Saves recreating array everytime
- * look up constructor with no args.
+ * Constant for array of 0 classes. Saves recreating array everytime look up
+ * constructor with no args.
*/
private static final Class[] EMPTY_TYPES = new Class[ 0 ];
- /**
- * The interfaces representing lifecycle stages.
- */
+ /** The interfaces representing lifecycle stages. */
private static final Class[] FRAMEWORK_CLASSES = new Class[]
{
LogEnabled.class,
@@ -94,17 +90,17 @@
}
/**
- * Verify that the supplied implementation class
- * and service classes are valid for a component.
+ * Verify that the supplied implementation class and service classes are
+ * valid for a component.
*
* @param name the name of component
* @param implementation the implementation class of component
* @param services the classes representing services
- * @param buildable if true will verify that it is instantiateable
- * via class.newInstance(). May not be required for
- * some components that are created via a factory.
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @param buildable if true will verify that it is instantiateable via
+ * class.newInstance(). May not be required for some components that are
+ * created via a factory.
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyComponent( final String name,
final Class implementation,
@@ -128,8 +124,8 @@
* @param name the name of component
* @param implementation the class representign component
* @param services the services that the implementation must provide
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyImplementsServices( final String name,
final Class implementation,
@@ -151,13 +147,12 @@
}
/**
- * Verify that the supplied class is a valid class for
- * a Component.
+ * Verify that the supplied class is a valid class for a Component.
*
* @param name the name of component
* @param clazz the class representing component
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyClass( final String name,
final Class clazz )
@@ -172,13 +167,12 @@
}
/**
- * Verify that the supplied classes are valid classes for
- * a service.
+ * Verify that the supplied classes are valid classes for a service.
*
* @param name the name of component
* @param classes the classes representign services
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyServices( final String name,
final Class[] classes )
@@ -191,13 +185,12 @@
}
/**
- * Verify that the supplied class is a valid class for
- * a service.
+ * Verify that the supplied class is a valid class for a service.
*
* @param name the name of component
* @param clazz the class representign service
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyService( final String name,
final Class clazz )
@@ -209,13 +202,13 @@
}
/**
- * Verify that the implementation class does not
- * implement incompatible lifecycle interfaces.
+ * Verify that the implementation class does not implement incompatible
+ * lifecycle interfaces.
*
* @param name the name of component
* @param implementation the implementation class
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyLifecycles( final String name,
final Class implementation )
@@ -224,7 +217,8 @@
final boolean composable =
Composable.class.isAssignableFrom( implementation ) ||
Recomposable.class.isAssignableFrom( implementation );
- final boolean serviceable = Serviceable.class.isAssignableFrom( implementation );
+ final boolean serviceable = Serviceable.class.isAssignableFrom(
+ implementation );
if( serviceable && composable )
{
final String message =
@@ -251,13 +245,13 @@
}
/**
- * Verify that the service implemented by
- * specified component is an interface.
+ * Verify that the service implemented by specified component is an
+ * interface.
*
* @param name the name of component
* @param clazz the class representign service
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyServiceIsaInterface( final String name,
final Class clazz )
@@ -274,13 +268,12 @@
}
/**
- * Verify that the service implemented by
- * specified component is public.
+ * Verify that the service implemented by specified component is public.
*
* @param name the name of component
* @param clazz the class representign service
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyServiceIsPublic( final String name,
final Class clazz )
@@ -299,13 +292,13 @@
}
/**
- * Verify that the service implemented by
- * specified component does not extend any lifecycle interfaces.
+ * Verify that the service implemented by specified component does not
+ * extend any lifecycle interfaces.
*
* @param name the name of component
* @param clazz the class representign service
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyServiceNotALifecycle( final String name,
final Class clazz )
@@ -327,13 +320,12 @@
}
/**
- * Verify that the component has a no-arg aka default
- * constructor.
+ * Verify that the component has a no-arg aka default constructor.
*
* @param name the name of component
* @param clazz the class representign component
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyNoArgConstructor( final String name,
final Class clazz )
@@ -362,13 +354,12 @@
}
/**
- * Verify that the component is not represented by
- * abstract class.
+ * Verify that the component is not represented by abstract class.
*
* @param name the name of component
* @param clazz the class representign component
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyNonAbstract( final String name,
final Class clazz )
@@ -387,13 +378,12 @@
}
/**
- * Verify that the component is not represented by
- * abstract class.
+ * Verify that the component is not represented by abstract class.
*
* @param name the name of component
* @param clazz the class representign component
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyPublic( final String name,
final Class clazz )
@@ -412,13 +402,12 @@
}
/**
- * Verify that the component is not represented by
- * primitive class.
+ * Verify that the component is not represented by primitive class.
*
* @param name the name of component
* @param clazz the class representign component
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyNonPrimitive( final String name,
final Class clazz )
@@ -435,13 +424,12 @@
}
/**
- * Verify that the component is not represented by
- * interface class.
+ * Verify that the component is not represented by interface class.
*
* @param name the name of component
* @param clazz the class representign component
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyNonInterface( final String name,
final Class clazz )
@@ -458,13 +446,12 @@
}
/**
- * Verify that the component is not represented by
- * an array class.
+ * Verify that the component is not represented by an array class.
*
* @param name the name of component
* @param clazz the class representign component
- * @throws java.lang.Exception if error thrown on failure and
- * component fails check
+ * @throws java.lang.Exception if error thrown on failure and component
+ * fails check
*/
public void verifyNonArray( final String name,
final Class clazz )
@@ -482,8 +469,7 @@
/**
* Retrieve an array of Classes for all the services that a Component
- * offers. This method also makes sure all services offered are
- * interfaces.
+ * offers. This method also makes sure all services offered are interfaces.
*
* @param name the name of component
* @param type the component type
@@ -509,7 +495,8 @@
{
final String message =
"Unable to load service class \"" +
- classname + "\" for Component named \"" +
+ classname +
+ "\" for Component named \"" +
name + "\". (Reason: " + t + ").";
throw new Exception( message );
}
Index: SarVerifier.java
===================================================================
RCS file: /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/util/verifier/SarVerifier.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- SarVerifier.java 3 Nov 2003 06:43:15 -0000 1.3
+++ SarVerifier.java 29 Nov 2003 13:44:27 -0000 1.4
@@ -94,63 +94,47 @@
import org.realityforge.salt.i18n.Resources;
/**
- * This Class verifies that Sars are valid. It performs a number
- * of checks to make sure that the Sar represents a valid
- * application and excluding runtime errors will start up validly.
- * Some of the checks it performs include;
+ * This Class verifies that Sars are valid. It performs a number of checks to
+ * make sure that the Sar represents a valid application and excluding runtime
+ * errors will start up validly. Some of the checks it performs include;
*
- * <ul>
- * <li>Verify names of Sar, Blocks and BlockListeners contain only
- * letters, digits or the '_' character.</li>
- * <li>Verify that the names of the Blocks and BlockListeners are
- * unique to Sar.</li>
- * <li>Verify that the dependendencies specified in assembly.xml
- * correspond to dependencies specified in BlockInfo files.</li>
- * <li>Verify that the inter-block dependendencies specified in
- * assembly.xml are valid. This essentially means that if
- * Block A requires Service S from Block B then Block B must
- * provide Service S.</li>
- * <li>Verify that there are no circular dependendencies between
- * blocks.</li>
- * <li>Verify that the Class objects for Blocks support the Block
- * interface and any specified Services.</li>
- * <li>Verify that the Class objects for BlockListeners support the
- * BlockListener interface.</li>
- * </ul>
+ * <ul> <li>Verify names of Sar, Blocks and BlockListeners contain only letters,
+ * digits or the '_' character.</li> <li>Verify that the names of the Blocks and
+ * BlockListeners are unique to Sar.</li> <li>Verify that the dependendencies
+ * specified in assembly.xml correspond to dependencies specified in BlockInfo
+ * files.</li> <li>Verify that the inter-block dependendencies specified in
+ * assembly.xml are valid. This essentially means that if Block A requires
+ * Service S from Block B then Block B must provide Service S.</li> <li>Verify
+ * that there are no circular dependendencies between blocks.</li> <li>Verify
+ * that the Class objects for Blocks support the Block interface and any
+ * specified Services.</li> <li>Verify that the Class objects for BlockListeners
+ * support the BlockListener interface.</li> </ul>
*
- * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
+ * @author Peter Donald
* @version $Revision$ $Date$
*/
public class SarVerifier
extends AssemblyVerifier
{
- /**
- * I18n utils.
- */
+ /** I18n utils. */
private static final Resources REZ =
ResourceManager.getPackageResources( SarVerifier.class );
- /**
- * The Block class used to warn about deprecation.
- */
+ /** The Block class used to warn about deprecation. */
private static final Class BLOCK_CLASS =
getClass( "org.apache.avalon.phoenix.Block" );
- /**
- * The BlockListener class used to warn about deprecation.
- */
+ /** The BlockListener class used to warn about deprecation. */
private static final Class BLOCKLISTENER_CLASS =
getClass( "org.apache.avalon.phoenix.BlockListener" );
- /**
- * The Verifier for Info instances.
- */
+ /** The Verifier for Info instances. */
private final ComponentVerifier m_infoVerifier = new ComponentVerifier();
/**
- * Verify the specified {@link org.jcontainer.loom.components.util.profile.PartitionProfile} object.
- * The rules used to verify {@link org.jcontainer.loom.components.util.profile.PartitionProfile} are specified
- * in the Class javadocs.
+ * Verify the specified {@link org.jcontainer.loom.components.util.profile.PartitionProfile}
+ * object. The rules used to verify {@link org.jcontainer.loom.components.util.profile.PartitionProfile}
+ * are specified in the Class javadocs.
*
* @param profile the Sar profile
* @param classLoader the classloader to load types from
@@ -161,9 +145,11 @@
throws Exception
{
final ComponentProfile[] blocks =
- profile.getPartition( ContainerConstants.BLOCK_PARTITION ).getComponents();
+ profile.getPartition( ContainerConstants.BLOCK_PARTITION )
+ .getComponents();
final ComponentProfile[] listeners =
- profile.getPartition( ContainerConstants.LISTENER_PARTITION ).getComponents();
+ profile.getPartition( ContainerConstants.LISTENER_PARTITION )
+ .getComponents();
String message;
@@ -188,8 +174,8 @@
}
/**
- * Verfiy that all Blocks specify classes that implement the
- * advertised interfaces.
+ * Verfiy that all Blocks specify classes that implement the advertised
+ * interfaces.
*
* @param blocks the ComponentProfile objects for the blocks
* @param classLoader the Classloader to load type from
@@ -272,7 +258,8 @@
}
/**
- * Verfiy that specified Listener class implements the BlockListener interface.
+ * Verfiy that specified Listener class implements the BlockListener
+ * interface.
*
* @param listener the BlockListenerMetaData object for the listener
* @param classLoader the classloader to laod type from
@@ -311,8 +298,8 @@
}
/**
- * Return true if specified name is valid.
- * Valid names consist of letters, digits or the '-' & '.' characters.
+ * Return true if specified name is valid. Valid names consist of letters,
+ * digits or the '-' & '.' characters.
*
* @param name the name to check
* @return true if valid, false otherwise
@@ -360,16 +347,16 @@
}
/**
- * Verify that the specified name is unique among specified blocks
- * and listeners except for those indexes specified.
+ * Verify that the specified name is unique among specified blocks and
+ * listeners except for those indexes specified.
*
* @param name the name to check for
* @param blocks the Blocks
* @param listeners the listeners
- * @param blockIndex the index of block that is allowed to
- * match in name (or -1 if name designates a listener)
- * @param listenerIndex the index of listener that is allowed to
- * match in name (or -1 if name designates a block)
+ * @param blockIndex the index of block that is allowed to match in name (or
+ * -1 if name designates a listener)
+ * @param listenerIndex the index of listener that is allowed to match in
+ * name (or -1 if name designates a block)
* @throws Exception if an error occurs
*/
private void checkNameUnique( final String name,
@@ -403,8 +390,8 @@
}
/**
- * Load class with specified name and throw a
- * IllegalStateException if unable to load class.
+ * Load class with specified name and throw a IllegalStateException if
+ * unable to load class.
*
* @param classname the name of class to load
* @return the Class object