Configurer.java :  » Development » OVal » net » sf » oval » configuration » Java Open Source

Java Open Source » Development » OVal 
OVal » net » sf » oval » configuration » Configurer.java
/*******************************************************************************
 * Portions created by Sebastian Thomschke are copyright (c) 2005-2007 Sebastian
 * Thomschke.
 * 
 * All Rights Reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Sebastian Thomschke - initial implementation.
 *******************************************************************************/
package net.sf.oval.configuration;

import net.sf.oval.configuration.pojo.elements.ClassConfiguration;
import net.sf.oval.configuration.pojo.elements.ConstraintSetConfiguration;
import net.sf.oval.exception.OValException;

/**
 * @author Sebastian Thomschke
 */
public interface Configurer
{
  /**
   * Returns the constraint configurations for the given class. This method
   * is invoked only once by the Validator, the very first time an object
   * of the given class needs to be validated. The constraint configuration
   * is then translated into an Validator internal format and cached.
   * 
   * @param clazz
   * @return The constraint configurations for the given class.
   * @throws OValException
   */
  ClassConfiguration getClassConfiguration(Class< ? > clazz) throws OValException;

  /**
   * Returns the constraint configuration for the constraint set with the 
   * given Id.
   * @param constraintSetId
   * @return The constraint configuration for the constraint set with the given Id.
   * @throws OValException
   */
  ConstraintSetConfiguration getConstraintSetConfiguration(String constraintSetId)
      throws OValException;
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.