Codota Logo
Watcher.addEventListener
Code IndexAdd Codota to your IDE (free)

How to use
addEventListener
method
in
org.hotswap.agent.watch.Watcher

Best Java code snippets using org.hotswap.agent.watch.Watcher.addEventListener (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: HotswapProjects/HotswapAgent

/**
 * Callback method from ch.qos.logback.core.joran.GenericConfigurator.
 *
 * @param configurator the configurator object
 * @param url          configuration file url
 */
public void initLogback(final Object configurator, final URL url) {
  try {
    final URI uri = url.toURI();
    // skip double registration on reload
    if (registeredURIs.contains(uri))
      return;
    LOGGER.debug("Watching '{}' URL for Logback configuration changes.", url);
    registeredURIs.add(uri);
    watcher.addEventListener(appClassLoader, uri, new WatchEventListener() {
      @Override
      public void onEvent(WatchFileEvent event) {
        if (event.getEventType() != FileEvent.DELETE)
          reload(configurator, url);
      }
    });
  } catch (Exception e) {
    LOGGER.error("Exception initializing logback configurator {} on url {}.", e, configurator, url);
  }
}
origin: HotswapProjects/HotswapAgent

LOGGER.debug("Watching '{}' URI for Log4j2 configuration changes.", configURI);
registeredURIs.add(configURI);
watcher.addEventListener(appClassLoader, parentUri, new WatchEventListener() {
origin: HotswapProjects/HotswapAgent

watcher.addEventListener(appClassLoader, uri, new WatchEventListener() {
  @Override
  public void onEvent(WatchFileEvent event) {
origin: HotswapProjects/HotswapAgent

  LOGGER.info("Initialize hotswap on URL {}.", uri);
  listener = new AutoHotswapPathEventListener(this);
  watcher.addEventListener(null, uri, listener);
} catch (URISyntaxException e) {
  LOGGER.error("Unable to watch path '{}' for changes.", e, resource);
origin: HotswapProjects/HotswapAgent

  continue;
} else {
  watcher.addEventListener(appClassLoader, basePackageURL, new WatchEventListener() {
    @Override
    public void onEvent(WatchFileEvent event) {
origin: HotswapProjects/HotswapAgent

LOGGER.info("Registering archive path '{}'", archivePath);
watcher.addEventListener(appClassLoader, uri, new WatchEventListener() {
  @Override
  public void onEvent(WatchFileEvent event) {
org.hotswap.agent.watchWatcheraddEventListener

Popular methods of Watcher

  • closeClassLoader

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
  • getApplicationContext (Context)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Collectors (java.util.stream)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now