[hibernate-commits] Hibernate SVN: r15508 - in validator/trunk/validation-api/src/main/java/javax/validation: spi and 1 other directory.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Tue Nov 4 18:09:34 EST 2008


Author: epbernard
Date: 2008-11-04 18:09:33 -0500 (Tue, 04 Nov 2008)
New Revision: 15508

Removed:
   validator/trunk/validation-api/src/main/java/javax/validation/ValidatorBuilder.java
   validator/trunk/validation-api/src/main/java/javax/validation/spi/ValidatorBuilderImplementor.java
Log:
stupid IDEA go delete those files, damn it.

Deleted: validator/trunk/validation-api/src/main/java/javax/validation/ValidatorBuilder.java
===================================================================
--- validator/trunk/validation-api/src/main/java/javax/validation/ValidatorBuilder.java	2008-11-04 22:18:48 UTC (rev 15507)
+++ validator/trunk/validation-api/src/main/java/javax/validation/ValidatorBuilder.java	2008-11-04 23:09:33 UTC (rev 15508)
@@ -1,86 +0,0 @@
-// $Id$
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2008, Red Hat Middleware LLC, and individual contributors
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-* http://www.apache.org/licenses/LICENSE-2.0
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package javax.validation;
-
-import java.io.InputStream;
-
-/**
- * Receives configuration information, selects the appropriate
- * Bean Validation provider and build the appropriate
- * ValidatorFactory.
- * <p/>
- * Usage:
- * <pre>
- * ValidatorBuilder<?> validatorBuilder = //provided by one of the Validation bootstrap methods
- * ValidatorFactory = validatorBuilder
- *         .messageResolver( new CustomMessageResolver() )
- *         .build();
- * </pre>
- * <p/>
- * The ValidationProviderResolver is specified at ValidatorBuilder time (see {@link javax.validation.spi.ValidationProvider}).
- * If none is explicitely requested, the default ValidationProviderResolver is used.
- * <p/>
- * The provider is selected in the following way:
- * - if a specific ValidatorBuilder subclass is requested programmatically using Validation.builderType(),
- * find the first provider matching it
- * - if a specific ValidatorBuilder subclass is defined in META-INF/validation.xml,
- * find the first provider matching it
- * - otherwise, use the first provider returned by the ValidationProviderResolver
- * <p/>
- * Implementations are not meant to be thread safe
- *
- * @author Emmanuel Bernard
- */
-public interface ValidatorBuilder<T extends ValidatorBuilder> {
-	/**
-	 * Defines the message resolver used. Has priority over the configuration based message resolver.
-	 *
-	 * @param resolver message resolver implementation.
-	 *
-	 * @return <code>this</code> following the chaining method pattern.
-	 */
-	T messageResolver(MessageResolver resolver);
-
-	/**
-	 * Defines the constraint factory. Has priority over the configuration based constraint factory.
-	 *
-	 * @param constraintFactory constraint factory inmplementation.
-	 *
-	 * @return <code>this</code> following the chaining method pattern.
-	 */
-	T constraintFactory(ConstraintFactory constraintFactory);
-
-	/**
-	 * Configure the ValidatorFactory based on <code>stream</code>
-	 * If not specified, META-INF/validation.xml is used
-	 * <p/>
-	 * The stream should be closed by the client API after the ValidatorFactory has been returned
-	 *
-	 * @param stream configuration stream.
-	 *
-	 * @return <code>this</code> following the chaining method pattern.
-	 */
-	T configure(InputStream stream);
-
-	/**
-	 * Build a ValidatorFactory implementation.
-	 *
-	 * @return ValidatorFactory
-	 */
-	ValidatorFactory build();
-}

Deleted: validator/trunk/validation-api/src/main/java/javax/validation/spi/ValidatorBuilderImplementor.java
===================================================================
--- validator/trunk/validation-api/src/main/java/javax/validation/spi/ValidatorBuilderImplementor.java	2008-11-04 22:18:48 UTC (rev 15507)
+++ validator/trunk/validation-api/src/main/java/javax/validation/spi/ValidatorBuilderImplementor.java	2008-11-04 23:09:33 UTC (rev 15508)
@@ -1,56 +0,0 @@
-// $Id$
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2008, Red Hat Middleware LLC, and individual contributors
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-* http://www.apache.org/licenses/LICENSE-2.0
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package javax.validation.spi;
-
-import java.io.InputStream;
-import javax.validation.ConstraintFactory;
-import javax.validation.MessageResolver;
-
-/**
- * Contract between a <code>ValidationBuilder</code> and a </code>ValidatorProvider</code> to create
- * a <code>ValidatorFactory</code>.
- * The configuration artifacts provided to the <code>ValidationBuilder</code> are passed along.
- *
- * @author Emmanuel Bernard
- * @author Hardy Ferentschik
- */
-public interface ValidatorBuilderImplementor {
-	/**
-	 * Message resolver as defined by the client programmatically
-	 * or null if undefined.
-	 *
-	 * @return message provider instance or null if not defined
-	 */
-	MessageResolver getMessageResolver();
-
-	/**
-	 * Returns the configuration stream defined by the client programmatically
-	 * or null if undefined.
-	 *
-	 * @return the configuration input stream or null
-	 */
-	InputStream getConfigurationStream();
-
-	/**
-	 * Defines the constraint implementation factory as defined by the client programmatically
-	 * or null if undefined
-	 *
-	 * @return factory instance or null if not defined
-	 */
-	ConstraintFactory getConstraintFactory();
-}




More information about the hibernate-commits mailing list