avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/verifier AssemblyVerifier.java
Date Thu, 06 Jun 2002 03:38:55 GMT
donaldp     2002/06/05 20:38:55

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/verifier
                        AssemblyVerifier.java
  Log:
  Allow you to specify verifier via constructor
  
  Revision  Changes    Path
  1.5       +28 -3     jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/verifier/AssemblyVerifier.java
  
  Index: AssemblyVerifier.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/verifier/AssemblyVerifier.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AssemblyVerifier.java	6 Jun 2002 02:15:42 -0000	1.4
  +++ AssemblyVerifier.java	6 Jun 2002 03:38:55 -0000	1.5
  @@ -40,18 +40,43 @@
    *   <li>Verify that the Class objects for Component implement the
    *       service interfaces.</li>
    *   <li>Verify that the Class is a valid Avalon Component as per the
  - *       rules in {@link Verifier} object.</li>
  + *       rules in {@link ComponentVerifier} object.</li>
    * </ul>
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.4 $ $Date: 2002/06/06 02:15:42 $
  + * @version $Revision: 1.5 $ $Date: 2002/06/06 03:38:55 $
    */
   public class AssemblyVerifier
       extends AbstractLogEnabled
   {
       private static final Resources REZ =
           ResourceManager.getPackageResources( AssemblyVerifier.class );
  -    private final Verifier m_verifier = new Verifier();
  +
  +    /**
  +     * The verifier for components in assembly.
  +     */
  +    private final ComponentVerifier m_verifier;
  +
  +    /**
  +     * Create an AssemblyVerifier using base Componern ComponentVerifier.
  +     */
  +    public AssemblyVerifier()
  +    {
  +        this( new ComponentVerifier() );
  +    }
  +
  +    /**
  +     * Create an AssemblyVerifier using specified Component ComponentVerifier.
  +     */
  +    public AssemblyVerifier( final ComponentVerifier verifier )
  +    {
  +        if( null == verifier )
  +        {
  +            throw new NullPointerException( "verifier" );
  +        }
  +
  +        m_verifier = verifier;
  +    }
   
       public void enableLogging( Logger logger )
       {
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message