Guvnor - Structure Backend 6.2.0.Final

org.guvnor.structure.backend.config
Class ConfigurationServiceImpl

java.lang.Object
  extended by org.guvnor.structure.backend.config.ConfigurationServiceImpl
All Implemented Interfaces:
AsyncWatchServiceCallback, ConfigurationService

@ApplicationScoped
public class ConfigurationServiceImpl
extends Object
implements ConfigurationService, AsyncWatchServiceCallback


Field Summary
 
Fields inherited from interface org.guvnor.structure.server.config.ConfigurationService
LAST_MODIFIED_MARKER_FILE
 
Constructor Summary
ConfigurationServiceImpl()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationServiceImpl

public ConfigurationServiceImpl()
Method Detail

setup

@PostConstruct
public void setup()

shutdown

@PreDestroy
public void shutdown()

startBatch

public void startBatch()
Specified by:
startBatch in interface ConfigurationService

endBatch

public void endBatch()
Specified by:
endBatch in interface ConfigurationService

getConfiguration

public List<ConfigGroup> getConfiguration(ConfigType type)
Specified by:
getConfiguration in interface ConfigurationService

addConfiguration

public boolean addConfiguration(ConfigGroup configGroup)
Specified by:
addConfiguration in interface ConfigurationService

updateConfiguration

public boolean updateConfiguration(ConfigGroup configGroup)
Specified by:
updateConfiguration in interface ConfigurationService

removeConfiguration

public boolean removeConfiguration(ConfigGroup configGroup)
Specified by:
removeConfiguration in interface ConfigurationService

getIdentityName

protected String getIdentityName()

getLastModified

protected long getLastModified()

updateLastModified

protected void updateLastModified()

callback

public void callback(long value)
Specified by:
callback in interface AsyncWatchServiceCallback

getWatchServiceExecutor

protected ConfigServiceWatchServiceExecutor getWatchServiceExecutor()

Guvnor - Structure Backend 6.2.0.Final

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.