Examples of GetClassLoader


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

    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

Examples of org.hibernate.validator.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

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

    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
Copyright © 2018 www.massapi.com. 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.