org.jboss.resteasy.plugins.validation.hibernate
Class HibernateValidatorContextResolver

java.lang.Object
  extended by org.jboss.resteasy.plugins.validation.hibernate.HibernateValidatorContextResolver
All Implemented Interfaces:
ContextResolver<ValidatorAdapter>

@Provider
public class HibernateValidatorContextResolver
extends Object
implements ContextResolver<ValidatorAdapter>


Constructor Summary
HibernateValidatorContextResolver()
           
 
Method Summary
 ValidatorAdapter 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

HibernateValidatorContextResolver

public HibernateValidatorContextResolver()
Method Detail

getContext

public ValidatorAdapter 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<ValidatorAdapter>
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.