Code example for LoadingCache

Methods: get

0
    } 
  }; 
 
  public byte[] getClassByteCodeFromPath(String path) throws ClassTransformationException, IOException {
    try { 
      return byteCode.get(path);
    } catch (ExecutionException e) {
      Throwable c = e.getCause();
      if (c instanceof ClassTransformationException) {
        throw (ClassTransformationException) c;
      } 
      if (c instanceof IOException) {
        throw (IOException) c;
      } 
      throw new ClassTransformationException(c);
    } 
  } 
 
}