@ApplicationScoped public class ConfigurationServiceImpl extends Object implements ConfigurationService, AsyncWatchServiceCallback
LAST_MODIFIED_MARKER_FILE| Constructor and Description |
|---|
ConfigurationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addConfiguration(ConfigGroup configGroup) |
void |
callback(long value) |
void |
endBatch() |
List<ConfigGroup> |
getConfiguration(ConfigType type) |
protected String |
getIdentityName() |
protected long |
getLastModified() |
protected ConfigServiceWatchServiceExecutor |
getWatchServiceExecutor() |
boolean |
removeConfiguration(ConfigGroup configGroup) |
void |
setup() |
void |
shutdown() |
void |
startBatch() |
boolean |
updateConfiguration(ConfigGroup configGroup) |
protected void |
updateLastModified() |
@PostConstruct public void setup()
@PreDestroy public void shutdown()
public void startBatch()
startBatch in interface ConfigurationServicepublic void endBatch()
endBatch in interface ConfigurationServicepublic List<ConfigGroup> getConfiguration(ConfigType type)
getConfiguration in interface ConfigurationServicepublic boolean addConfiguration(ConfigGroup configGroup)
addConfiguration in interface ConfigurationServicepublic boolean updateConfiguration(ConfigGroup configGroup)
updateConfiguration in interface ConfigurationServicepublic boolean removeConfiguration(ConfigGroup configGroup)
removeConfiguration in interface ConfigurationServiceprotected String getIdentityName()
protected long getLastModified()
protected void updateLastModified()
public void callback(long value)
callback in interface AsyncWatchServiceCallbackprotected ConfigServiceWatchServiceExecutor getWatchServiceExecutor()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.