Class AbstractIOWatchService
- java.lang.Object
-
- org.uberfire.backend.server.io.watch.AbstractIOWatchService
-
- All Implemented Interfaces:
Filter<org.uberfire.java.nio.file.WatchEvent<?>>,org.uberfire.io.IOWatchService
- Direct Known Subclasses:
IOWatchServiceAllImpl,IOWatchServiceNonDotImpl
public abstract class AbstractIOWatchService extends Object implements org.uberfire.io.IOWatchService, Filter<org.uberfire.java.nio.file.WatchEvent<?>>
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisDisposed
-
Constructor Summary
Constructors Constructor Description AbstractIOWatchService()AbstractIOWatchService(javax.enterprise.event.Event<org.uberfire.workbench.events.ResourceBatchChangesEvent> resourceBatchChanges, javax.enterprise.event.Event<org.uberfire.workbench.events.ResourceUpdatedEvent> resourceUpdatedEvent, javax.enterprise.event.Event<org.uberfire.workbench.events.ResourceRenamedEvent> resourceRenamedEvent, javax.enterprise.event.Event<org.uberfire.workbench.events.ResourceDeletedEvent> resourceDeletedEvent, javax.enterprise.event.Event<org.uberfire.workbench.events.ResourceAddedEvent> resourceAddedEvent, ExecutorService executorService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddWatchService(org.uberfire.java.nio.file.FileSystem fs, org.uberfire.java.nio.file.WatchService ws)voidconfigureOnEvent(org.uberfire.commons.services.cdi.ApplicationStarted applicationStartedEvent)protected voiddispose()protected IOWatchServiceExecutorgetWatchServiceExecutor()booleanhasWatchService(org.uberfire.java.nio.file.FileSystem fs)voidinitialize()voidstart()
-
-
-
Constructor Detail
-
AbstractIOWatchService
public AbstractIOWatchService()
-
AbstractIOWatchService
@Inject public AbstractIOWatchService(javax.enterprise.event.Event<org.uberfire.workbench.events.ResourceBatchChangesEvent> resourceBatchChanges, javax.enterprise.event.Event<org.uberfire.workbench.events.ResourceUpdatedEvent> resourceUpdatedEvent, javax.enterprise.event.Event<org.uberfire.workbench.events.ResourceRenamedEvent> resourceRenamedEvent, javax.enterprise.event.Event<org.uberfire.workbench.events.ResourceDeletedEvent> resourceDeletedEvent, javax.enterprise.event.Event<org.uberfire.workbench.events.ResourceAddedEvent> resourceAddedEvent, @Unmanaged ExecutorService executorService)
-
-
Method Detail
-
initialize
@PostConstruct public void initialize()
-
start
public void start()
-
dispose
@PreDestroy protected void dispose()
-
hasWatchService
public boolean hasWatchService(org.uberfire.java.nio.file.FileSystem fs)
- Specified by:
hasWatchServicein interfaceorg.uberfire.io.IOWatchService
-
addWatchService
public void addWatchService(org.uberfire.java.nio.file.FileSystem fs, org.uberfire.java.nio.file.WatchService ws)- Specified by:
addWatchServicein interfaceorg.uberfire.io.IOWatchService
-
configureOnEvent
public void configureOnEvent(@Observes org.uberfire.commons.services.cdi.ApplicationStarted applicationStartedEvent)
-
getWatchServiceExecutor
protected IOWatchServiceExecutor getWatchServiceExecutor()
-
-