/** * gets the time stamp of a given class. For groovy * generated classes this usually means to return the value * of the static field __timeStamp. If the parameter doesn't * have such a field, then Long.MAX_VALUE is returned * * @param cls the class * @return the time stamp */ protected long getTimeStamp(Class cls) { return Verifier.getTimestamp(cls); }
/** * get the time stamp of a class * NOTE: copied from GroovyClassLoader */ private static long getTimeStamp(ClassNode cls) { if (!(cls instanceof DecompiledClassNode)) { return Verifier.getTimestamp(cls.getTypeClass()); } return ((DecompiledClassNode) cls).getCompilationTimeStamp(); }
/** * gets the time stamp of a given class. For groovy * generated classes this usually means to return the value * of the static field __timeStamp. If the parameter doesn't * have such a field, then Long.MAX_VALUE is returned * * @param cls the class * @return the time stamp */ protected long getTimeStamp(Class cls) { return Verifier.getTimestamp(cls); }
/** * gets the time stamp of a given class. For groovy * generated classes this usually means to return the value * of the static field __timeStamp. If the parameter doesn't * have such a field, then Long.MAX_VALUE is returned * * @param cls the class * @return the time stamp */ protected long getTimeStamp(Class cls) { return Verifier.getTimestamp(cls); }
/** * get the time stamp of a class * NOTE: copied from GroovyClassLoader */ private long getTimeStamp(Class cls) { return Verifier.getTimestamp(cls); }
/** * gets the time stamp of a given class. For groovy * generated classes this usually means to return the value * of the static field __timeStamp. If the parameter doesn't * have such a field, then Long.MAX_VALUE is returned * * @param cls the class * @return the time stamp */ protected long getTimeStamp(Class cls) { return Verifier.getTimestamp(cls); }
private long getTimeStamp(Class cls) { return Verifier.getTimestamp(cls); }
/** * gets the time stamp of a given class. For groovy * generated classes this usually means to return the value * of the static field __timeStamp. If the parameter doesn't * have such a field, then Long.MAX_VALUE is returned * * @param cls the class * @return the time stamp */ protected long getTimeStamp(Class cls) { return Verifier.getTimestamp(cls); }
private long getTimeStamp(Class cls) { return Verifier.getTimestamp(cls); }
private long getTimeStamp(Class cls) { return Verifier.getTimestamp(cls); }
public Class<?> get() { try { Class<?> clazz = loader.loadClass(className, true, false); long tm = Verifier.getTimestamp(clazz); if (timestamp > 0 && timestamp < tm) { if (log.isDebugEnabled()) { log.debug("CLASS CHANGED: " + clazz.getName()); } } timestamp = tm; return clazz; } catch (ReflectiveOperationException e) { throw new NuxeoException(e); } }