public Jdk14ManagerAccessor(ClassLoader cl) throws ClassNotFoundException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
  Class clazz=cl.loadClass("java.util.logging.LogManager");
  Method getManager=MethodUtils.getAccessibleMethod(clazz,"getLogManager",new Class[0]);
  Object manager=getManager.invoke(null);
  if (manager == null) {
    throw new NullPointerException(clazz.getName() + ".getLogManager() returned null");
  }
  setTarget(manager);
}

public Jdk14ManagerAccessor ( ClassLoader cl ) throws ClassNotFoundException , IllegalAccessException , IllegalArgumentException , InvocationTargetException { Class clazz = cl . loadClass ( "java.util.logging.LogManager" ) ; Method getManager = MethodUtils . getAccessibleMethod ( clazz , "getLogManager" , new Class [ 0 ] ) ; Object manager = getManager . invoke ( null ) ; if ( manager == null ) { throw new NullPointerException ( clazz . getName ( ) + ".getLogManager() returned null" ) ; } setTarget ( manager ) ; }
instantiates a new jdk14 manager accessor .
