avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pro...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/configuration/validator NoopConfigurationValidator.java
Date Fri, 28 Jun 2002 05:14:40 GMT
proyal      2002/06/27 22:14:40

  Added:       src/java/org/apache/avalon/phoenix/components/configuration/validator
                        NoopConfigurationValidator.java
  Log:
  ConfigurationValidator that doesn't do a thing.
  
  Placeholder for testing interface hooks, or useful
  if you don't want/care for validation
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/configuration/validator/NoopConfigurationValidator.java
  
  Index: NoopConfigurationValidator.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.avalon.phoenix.components.configuration.validator;
  
  import org.apache.avalon.phoenix.interfaces.ConfigurationValidator;
  import org.apache.avalon.framework.configuration.Configuration;
  import org.apache.avalon.framework.configuration.ConfigurationException;
  
  /**
   * A ConfigurationValidator that always says everything is okay
   *
   * @author <a href="mailto:proyal@apache.org">Peter Royal</a>
   */
  public class NoopConfigurationValidator implements ConfigurationValidator
  {
      public void storeSchema( String application, String block, Configuration schema )
        throws ConfigurationException
      {
      }
  
      public boolean isValid( String application, String block, Configuration configuration
)
        throws ConfigurationException
      {
          return true;
      }
  
      public boolean isFeasiblyValid( String application, String block, Configuration configuration
)
        throws ConfigurationException
      {
          return true;
      }
  }
  
  
  

--
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