public final class LiveReloadBuildItem extends SimpleBuildItem
| Constructor and Description |
|---|
LiveReloadBuildItem()
This constructor should only be used if live reload is not possible
|
LiveReloadBuildItem(boolean liveReload,
Set<String> changedResources,
Map<Class<?>,Object> reloadContext,
ClassChangeInformation changeInformation) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getChangedResources()
If this is a live reload this set contains the config resources that have changed
|
ClassChangeInformation |
getChangeInformation()
Returns the change information from the last successful restart.
|
<T> T |
getContextObject(Class<T> type)
Gets an object from live reload context that is persistent across restarts
|
boolean |
isLiveReload()
If this is a reload of an app in the same JVM then this will return true.
|
<T> void |
setContextObject(Class<T> type,
T val)
Sets an object into the live reload context that is persistent across restarts
|
public LiveReloadBuildItem()
public boolean isLiveReload()
true if this is a live reloadpublic Set<String> getChangedResources()
public <T> T getContextObject(Class<T> type)
public <T> void setContextObject(Class<T> type, T val)
public ClassChangeInformation getChangeInformation()
Copyright © 2021 JBoss by Red Hat. All rights reserved.