org.jboss.resteasy.plugins.providers.validation
Class DefaultHibernateValidatorContextResolver

java.lang.Object
  extended by org.jboss.resteasy.plugins.providers.validation.DefaultHibernateValidatorContextResolver
All Implemented Interfaces:
ContextResolver<GeneralValidator>

@Provider
public class DefaultHibernateValidatorContextResolver
extends Object
implements ContextResolver<GeneralValidator>

Version:
$Revision: 1.1 $ Created Mar 7, 2012
Author:
Leandro Ferro Luzia, Ron Sigal

Constructor Summary
DefaultHibernateValidatorContextResolver()
           
 
Method Summary
 GeneralValidator getContext(Class<?> type)
          Get a context of type T that is applicable to the supplied type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHibernateValidatorContextResolver

public DefaultHibernateValidatorContextResolver()
Method Detail

getContext

public GeneralValidator getContext(Class<?> type)
Description copied from interface: ContextResolver
Get a context of type T that is applicable to the supplied type.

Specified by:
getContext in interface ContextResolver<GeneralValidator>
Parameters:
type - the class of object for which a context is desired
Returns:
a context for the supplied type or null if a context for the supplied type is not available from this provider.


Copyright © 2012. All Rights Reserved.