com.buglabs.bug.service
Class ConfigurationAdminHelper

java.lang.Object
  extended by com.buglabs.bug.service.ConfigurationAdminHelper

public class ConfigurationAdminHelper
extends java.lang.Object

Helper class for ConfigurationAdmin


Constructor Summary
ConfigurationAdminHelper()
           
 
Method Summary
static boolean isServiceEnabled(ConfigurationAdmin admin, java.lang.String serviceName)
          Checks whether service is enabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationAdminHelper

public ConfigurationAdminHelper()
Method Detail

isServiceEnabled

public static boolean isServiceEnabled(ConfigurationAdmin admin,
                                       java.lang.String serviceName)
                                throws java.io.IOException
Checks whether service is enabled

Parameters:
admin - ConfigurationAdmin
serviceName - Name of the service for which enabled property to be checked
Returns:
Returns true if service is enabled, false otherwise. Note that true will be returned if configuration does not have enabled property.
Throws:
java.io.IOException