Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * JBoss, Home of Professional Open Source
  * Copyright 2011, Red Hat, Inc. and/or its affiliates, 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
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
This class defines the dynamic group sequence provider contract.

In order to redefine dynamically the default group sequence for a type T, the GroupSequenceProvider annotation must be placed on T, specifying as its value a concrete implementation of DefaultGroupSequenceProvider, which must be parametrized with the type T.

If during the validation process the Default group is validated for T, the actual validated instance is passed to the DefaultGroupSequenceProvider to determine the default group sequence.


  • Implementations must provide a public default constructor.
  • Implementations must be thread-safe.

Will be removed in a future release. Use instead.
<T> The type for which an implementation is defined.
Kevin Pollet <> (C) 2011 SERLI
Hardy Ferentschik
public interface DefaultGroupSequenceProvider<T>
This method returns the default group sequence for the given instance.

The object parameter allows to dynamically compose the default group sequence in function of the validated value state.

object the instance being validated. This value can be null in case this method was called as part of Validator.validateValue.
a list of classes specifying the default group sequence. The same constraints to the redefined group list apply as for lists defined via GroupSequence. In particular the list has to contain the type T.
	List<Class<?>> getValidationGroups(T object);
New to GrepCode? Check out our FAQ X