You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/05/19 07:24:58 UTC

cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/verifier Verifier.java Resources.properties SarVerifier.java

donaldp     02/05/18 22:24:58

  Modified:    src/java/org/apache/avalon/phoenix/tools/verifier
                        Resources.properties SarVerifier.java
  Added:       src/java/org/apache/avalon/phoenix/tools/verifier
                        Verifier.java
  Log:
  Add in a verifier that is "generic" to the all Avalon components. Eventually
  it should be moved somewhere else - possibly to framework, possibly to excalibur.
  
  Revision  Changes    Path
  1.10      +14 -0     jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/verifier/Resources.properties
  
  Index: Resources.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/verifier/Resources.properties,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Resources.properties	18 May 2002 09:05:36 -0000	1.9
  +++ Resources.properties	19 May 2002 05:24:58 -0000	1.10
  @@ -24,3 +24,17 @@
   
   verifier.service-isa-lifecycle.error=The Block named "{0}" (implementation class "{1}"), implements a service "{2}" which extends a Lifecycle interface "{3}". This violates the expected usage patterns.
   verifier.implements-block.error=The Block named "{0}" (implementation class "{1}"), implements Block interface. The Block interface has been deprecated and should no longer be used.
  +
  +
  +#From Verifier class
  +verifier.non-public-ctor.error=The implementation class {1} for component named "{0}" does not have a public no-arg constructor.
  +verifier.missing-noargs-ctor.error=The implementation class {1} for component named "{0}" does not have a no-arg constructor.
  +verifier.abstract-class.error=The implementation class {1} for component named "{0}" is abstract.
  +verifier.nonpublic-class.error=The implementation class {1} for component named "{0}" is not public.
  +verifier.primitive-class.error=The implementation class {1} for component named "{0}" is primitive.
  +verifier.interface-class.error=The implementation class {1} for component named "{0}" is an interface.
  +verifier.array-class.error=The implementation class {1} for component named "{0}" is an array class.
  +verifier.non-interface-service.error=The service class {1} for component named "{0}" is not an interface.
  +verifier.non-public-service.error=The service class {1} for component named "{0}" is not public.
  +verifier.incompat-serviceable.error=The implementation class {1} for component named "{0}" is both Serviceable and Composable (incompatible lifecycle interfaces).
  +verifier.incompat-config.error=The implementation class {1} for component named "{0}" is both Configurable and Parameterizable (incompatible lifecycle interfaces).
  \ No newline at end of file
  
  
  
  1.15      +7 -1      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/verifier/SarVerifier.java
  
  Index: SarVerifier.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/verifier/SarVerifier.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- SarVerifier.java	18 May 2002 09:05:36 -0000	1.14
  +++ SarVerifier.java	19 May 2002 05:24:58 -0000	1.15
  @@ -57,7 +57,7 @@
    * </ul>
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.14 $ $Date: 2002/05/18 09:05:36 $
  + * @version $Revision: 1.15 $ $Date: 2002/05/19 05:24:58 $
    */
   public class SarVerifier
       extends AbstractLogEnabled
  @@ -364,6 +364,12 @@
               getServiceClasses( block.getName(),
                                  block.getBlockInfo().getServices(),
                                  classLoader );
  +
  +        ///TODO: Remove next lines
  +        final Verifier verifier = new Verifier();
  +        setupLogger( verifier );
  +        verifier.
  +            verifyComponent( block.getName(), clazz, interfaces );
   
           for( int i = 0; i < interfaces.length; i++ )
           {
  
  
  
  1.3       +414 -10   jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/verifier/Verifier.java
  
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>