CVS: jcontainer/dna/tools/src/java/org/jcontainer/dna/tools/verifier ComponentVerifier.java,1.12,1.13

Peter Donald <pdonald-yCVjj/[email protected]>
Newsgroups gmane.comp.java.jcontainer.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcontainer/jcontainer/dna/tools/src/java/org/jcontainer/dna/tools/verifier
In directory hogshead.codehaus.org:/tmp/cvs-serv26277/tools/src/java/org/jcontainer/dna/tools/verifier

Modified Files:
	ComponentVerifier.java 
Log Message:
Remove Parameters and Parameterizable from framework with the aim of simplifying usage patterns


Index: ComponentVerifier.java
===================================================================
RCS file: /cvsroot/jcontainer/jcontainer/dna/tools/src/java/org/jcontainer/dna/tools/verifier/ComponentVerifier.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- ComponentVerifier.java	26 Oct 2003 07:08:13 -0000	1.12
+++ ComponentVerifier.java	29 Oct 2003 22:36:21 -0000	1.13
@@ -7,20 +7,19 @@
  */
 package org.jcontainer.dna.tools.verifier;
 
-import java.lang.reflect.Modifier;
 import java.lang.reflect.Method;
+import java.lang.reflect.Modifier;
+import java.net.URL;
 import java.text.MessageFormat;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.ResourceBundle;
-import java.net.URL;
 import org.jcontainer.dna.Active;
 import org.jcontainer.dna.Composable;
 import org.jcontainer.dna.Configurable;
+import org.jcontainer.dna.Configuration;
 import org.jcontainer.dna.LogEnabled;
-import org.jcontainer.dna.Parameterizable;
 import org.jcontainer.dna.ResourceLocator;
-import org.jcontainer.dna.Configuration;
 import org.realityforge.metaclass.Attributes;
 import org.realityforge.metaclass.model.Attribute;
 
@@ -59,7 +58,6 @@
         LogEnabled.class,
         Composable.class,
         Configurable.class,
-        Parameterizable.class,
         Active.class
     };
 
@@ -100,7 +98,6 @@
         final Class[] interfaces = getServiceClasses( type, issues );
 
         verifyClass( type, issues );
-        verifyLifecycles( type, issues );
         verifyImplementsServices( type, interfaces, issues );
         for( int i = 0; i < interfaces.length; i++ )
         {
@@ -417,28 +414,6 @@
         verifyServiceIsaInterface( clazz, issues );
         verifyServiceIsPublic( clazz, issues );
         verifyServiceNotALifecycle( clazz, issues );
-    }
-
-    /**
-     * Verify that the implementation class does not
-     * implement incompatible lifecycle interfaces.
-     *
-     * @param implementation the implementation class
-     * @param issues the list of issues
-     */
-    void verifyLifecycles( final Class implementation, final List issues )
-    {
-        final boolean configurable =
-            Configurable.class.isAssignableFrom( implementation );
-        final boolean parameterizable =
-            Parameterizable.class.isAssignableFrom( implementation );
-        if( parameterizable && configurable )
-        {
-            final String message = getMessage( "CV003" );
-            final VerifyIssue issue =
-                new VerifyIssue( VerifyIssue.ERROR, message );
-            issues.add( issue );
-        }
     }
 
     /**
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.