Tabnine Logo
Watcher.addEventListener
Code IndexAdd Tabnine 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)

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

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now