예제 #1
1
  private void checkImpl() {
    Thread thread = Thread.currentThread();
    ClassLoader oldLoader = thread.getContextClassLoader();

    try {
      ClassLoader loader = getClassLoader();

      if (loader != null) {
        // server/1e87, #5156
        thread.setContextClassLoader(loader);
      }

      for (int i = _dependencyList.size() - 1; i >= 0; i--) {
        Dependency dependency = _dependencyList.get(i);

        if (dependency.isModified()) {
          setModified(true);

          return;
        }
      }
    } finally {
      thread.setContextClassLoader(oldLoader);
    }
  }
예제 #2
0
  /** Logs the reason for modification. */
  @Override
  public boolean logModified(Logger log) {
    if (_isModifiedLog) return true;

    for (int i = _dependencyList.size() - 1; i >= 0; i--) {
      Dependency dependency = _dependencyList.get(i);

      if (dependency.logModified(log)) {
        _isModifiedLog = true;
        return true;
      }
    }

    return false;
  }