Examples of WatchFileEvent


Examples of org.hotswap.agent.watch.WatchFileEvent

    // notify listeners about new event
    private void callListeners(final WatchEvent event, final Path path) {
        for (Map.Entry<Path, List<WatchEventListener>> list : listeners.entrySet()) {
            for (WatchEventListener listener : list.getValue()) {
                if (path.startsWith(list.getKey())) {
                    WatchFileEvent agentEvent = new HotswapWatchFileEvent(event, path);

                    try {
                        listener.onEvent(agentEvent);
                    } catch (Throwable e) {
                        LOGGER.error("Error in watch event '{}' listener '{}'", e, agentEvent, listener);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.