public class DevelopmentModeClasspathService extends ClasspathServiceBase implements MonitoredClasspathService
Classpath service
implementation which targets
development application mode.
DevelopmentModeClasspathService
by default uses DefaultClasspathServiceConfigurations.developmentMode()
config
and maintains an internal asynchronous monitor which periodically refreshes the service's classpath entries and
communicates the detected changes via MonitoredClasspathService
interface
Modifier and Type | Class and Description |
---|---|
static interface |
DevelopmentModeClasspathService.ClasspathResourceCallback
Interface for
classpath resource changes communication. |
class |
DevelopmentModeClasspathService.ClasspathResourceChange
Simple context object for the classpath resource change.
|
ClasspathService.ClasspathEntryNotFoundException
Constructor and Description |
---|
DevelopmentModeClasspathService(ClasspathServiceConfiguration configuration,
ClasspathEntriesResolver classpathEntriesResolver)
Alternative c-tor which allows to pass in a custom classpath configuration.
|
DevelopmentModeClasspathService(DefaultClasspathServiceConfigurations configurations,
ClasspathEntriesResolver classpathEntriesResolver) |
Modifier and Type | Method and Description |
---|---|
void |
registerResourceChangeCallback(DevelopmentModeClasspathService.ClasspathResourceCallback resourceChangeCallback)
Subscribe to the classpath resource changes via a callback function.
|
void |
reload(long previousReload) |
void |
startMonitoring() |
void |
stopMonitoring() |
addMappings, clearAllMappings, getClasspathEntryMappings, getConfiguration, getEntryAt, getParent, getRoot, hasEntry, resolveResources
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration, getEntryAt, getParent, getRoot, hasEntry
public DevelopmentModeClasspathService(DefaultClasspathServiceConfigurations configurations, ClasspathEntriesResolver classpathEntriesResolver)
public DevelopmentModeClasspathService(ClasspathServiceConfiguration configuration, ClasspathEntriesResolver classpathEntriesResolver)
public void registerResourceChangeCallback(DevelopmentModeClasspathService.ClasspathResourceCallback resourceChangeCallback)
MonitoredClasspathService
registerResourceChangeCallback
in interface MonitoredClasspathService
resourceChangeCallback
- handler object which receives the context of the change and handles itpublic void reload(long previousReload)
reload
in interface MonitoredClasspathService
public void startMonitoring()
startMonitoring
in interface MonitoredClasspathService
public void stopMonitoring()
stopMonitoring
in interface MonitoredClasspathService
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.