net.sf.shineframework.server.services.impl
Class ConfigurationServiceImpl

java.lang.Object
  extended by net.sf.shineframework.server.services.BaseService
      extended by net.sf.shineframework.server.services.impl.ConfigurationServiceImpl
All Implemented Interfaces:
ConfigurationService

public class ConfigurationServiceImpl
extends BaseService
implements ConfigurationService


Field Summary
 
Fields inherited from class net.sf.shineframework.server.services.BaseService
logger
 
Constructor Summary
ConfigurationServiceImpl()
           
 
Method Summary
 Configuration addConfiguration(java.lang.String name, java.lang.String value)
           
 Configuration addConfiguration(java.lang.String name, java.lang.String value, java.lang.String defaultValue)
           
 void createOrReplaceProperty(java.lang.String name, java.lang.String value, java.lang.String defaultValue)
           
 java.util.Collection<Configuration> getAllConfigurations()
           
 NamedDao getConfigurationDao()
           
 java.lang.String getProperty(java.lang.String name)
           
 boolean getPropertyAsBoolean(java.lang.String name)
           
 Configuration getPropertyAsConfiguration(java.lang.String name)
           
 int getPropertyAsInt(java.lang.String name)
           
 java.lang.Integer getPropertyAsInteger(java.lang.String name)
           
 void setConfigurationDao(NamedDao<Configuration> configurationDao)
           
 void setPropertyValue(java.lang.String name, java.lang.String value)
           
 
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

addConfiguration

@Transactional
public Configuration addConfiguration(java.lang.String name,
                                                    java.lang.String value)
Specified by:
addConfiguration in interface ConfigurationService

addConfiguration

@Transactional
public Configuration addConfiguration(java.lang.String name,
                                                    java.lang.String value,
                                                    java.lang.String defaultValue)
Specified by:
addConfiguration in interface ConfigurationService

getAllConfigurations

@Transactional(readOnly=true)
public java.util.Collection<Configuration> getAllConfigurations()
Specified by:
getAllConfigurations in interface ConfigurationService

getConfigurationDao

public NamedDao getConfigurationDao()

getProperty

@Transactional(readOnly=true)
public java.lang.String getProperty(java.lang.String name)
Specified by:
getProperty in interface ConfigurationService

getPropertyAsBoolean

@Transactional(readOnly=true)
public boolean getPropertyAsBoolean(java.lang.String name)
Specified by:
getPropertyAsBoolean in interface ConfigurationService

getPropertyAsConfiguration

@Transactional(readOnly=true)
public Configuration getPropertyAsConfiguration(java.lang.String name)
Specified by:
getPropertyAsConfiguration in interface ConfigurationService

getPropertyAsInt

@Transactional(readOnly=true)
public int getPropertyAsInt(java.lang.String name)
Specified by:
getPropertyAsInt in interface ConfigurationService

getPropertyAsInteger

@Transactional(readOnly=true)
public java.lang.Integer getPropertyAsInteger(java.lang.String name)
Specified by:
getPropertyAsInteger in interface ConfigurationService

setConfigurationDao

public void setConfigurationDao(NamedDao<Configuration> configurationDao)

setPropertyValue

@Transactional
public void setPropertyValue(java.lang.String name,
                                           java.lang.String value)
Specified by:
setPropertyValue in interface ConfigurationService

createOrReplaceProperty

@Transactional
public void createOrReplaceProperty(java.lang.String name,
                                                  java.lang.String value,
                                                  java.lang.String defaultValue)
Specified by:
createOrReplaceProperty in interface ConfigurationService


Copyright © 2007 sourceforge.net. All Rights Reserved.