Package org.hibernate.validator.util.privilegedactions

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


   *
   * @return Returns the declared method with the specified name or {@code null} if it does not exist.
   */
  public static Method getDeclaredMethod(Class<?> clazz, String methodName, Class<?>... parameterTypes) {
    Method method;
    GetDeclaredMethod action = GetDeclaredMethod.action( clazz, methodName, parameterTypes );
    if ( System.getSecurityManager() != null ) {
      method = AccessController.doPrivileged( action );
    }
    else {
      method = action.run();
    }
    return method;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.validator.util.privilegedactions.GetDeclaredMethod

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.