Interface GenericBootstrap

public interface GenericBootstrap

Defines the state used to bootstrap Bean Validation and creates a provider agnostic Configuration.

Emmanuel Bernard

Method Summary
 Configuration<?> configure()
          Returns a generic Configuration implementation.
 GenericBootstrap providerResolver(ValidationProviderResolver resolver)
          Defines the provider resolution strategy.

Method Detail


GenericBootstrap providerResolver(ValidationProviderResolver resolver)
Defines the provider resolution strategy. This resolver returns the list of providers evaluated to build the Configuration

If no resolver is defined, the default ValidationProviderResolver implementation is used.

this following the chaining method pattern


Configuration<?> configure()
Returns a generic Configuration implementation. At this stage the provider used to build the ValidatorFactory is not defined.

The Configuration implementation is provided by the first provider returned by the ValidationProviderResolver strategy.

a Configuration implementation compliant with the bootstrap state
ValidationException - if the Configuration object cannot be built this is generally due to an issue with the ValidationProviderResolver

Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41

Scripting on this page tracks web page traffic, but does not change the content in any way.