Class LoadClass

  • All Implemented Interfaces:
    PrivilegedAction<Class<?>>

    public final class LoadClass
    extends Object
    implements PrivilegedAction<Class<?>>
    Loads a class specified by name.

    If no class loader is provided, first the thread context class loader is tried, and finally Hibernate Validator's own class loader.

    Note: When loading classes provided by the user (such as XML-configured beans or constraint types), the user class loader passed to the configuration must be passed.

    Author:
    Emmanuel Bernard, Hardy Ferentschik, Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI, Gunnar Morling, Guillaume Smet