Package org.hibernate.validator.internal.util.privilegedactions

Examples of org.hibernate.validator.internal.util.privilegedactions.GetClassLoader


  private ReflectionHelper() {
  }

  public static ClassLoader getClassLoaderFromContext() {
    ClassLoader loader;
    GetClassLoader action = GetClassLoader.fromContext();
    if ( System.getSecurityManager() != null ) {
      loader = AccessController.doPrivileged( action );
    }
    else {
      loader = action.run();
    }
    return loader;
  }
View Full Code Here


    return loader;
  }

  public static ClassLoader getClassLoaderFromClass(Class<?> clazz) {
    ClassLoader loader;
    GetClassLoader action = GetClassLoader.fromClass( clazz );
    if ( System.getSecurityManager() != null ) {
      loader = AccessController.doPrivileged( action );
    }
    else {
      loader = action.run();
    }
    return loader;
  }
View Full Code Here

  private ReflectionHelper() {
  }

  public static ClassLoader getClassLoaderFromContext() {
    ClassLoader loader;
    GetClassLoader action = GetClassLoader.fromContext();
    if ( System.getSecurityManager() != null ) {
      loader = AccessController.doPrivileged( action );
    }
    else {
      loader = action.run();
    }
    return loader;
  }
View Full Code Here

    return loader;
  }

  public static ClassLoader getClassLoaderFromClass(Class<?> clazz) {
    ClassLoader loader;
    GetClassLoader action = GetClassLoader.fromClass( clazz );
    if ( System.getSecurityManager() != null ) {
      loader = AccessController.doPrivileged( action );
    }
    else {
      loader = action.run();
    }
    return loader;
  }
View Full Code Here

  private ReflectionHelper() {
  }

  public static ClassLoader getClassLoaderFromContext() {
    ClassLoader loader;
    GetClassLoader action = GetClassLoader.fromContext();
    if ( System.getSecurityManager() != null ) {
      loader = AccessController.doPrivileged( action );
    }
    else {
      loader = action.run();
    }
    return loader;
  }
View Full Code Here

    return loader;
  }

  public static ClassLoader getClassLoaderFromClass(Class<?> clazz) {
    ClassLoader loader;
    GetClassLoader action = GetClassLoader.fromClass( clazz );
    if ( System.getSecurityManager() != null ) {
      loader = AccessController.doPrivileged( action );
    }
    else {
      loader = action.run();
    }
    return loader;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.validator.internal.util.privilegedactions.GetClassLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.