Guvnor - Structure Backend 6.2.0.Beta3

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)
           
 List<ConfigGroup> getConfiguration(ConfigType type)
           
protected  String getIdentityName()
           
protected  long getLastModified()
           
protected  ConfigServiceWatchServiceExecutor getWatchServiceExecutor()
           
 boolean removeConfiguration(ConfigGroup configGroup)
           
 void setup()
           
 void shutdown()
           
 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()

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.Beta3

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