1.0.0

org.eclipse.soda.dk.core
Class ConfigurableObject

java.lang.Object
  extended by org.eclipse.soda.dk.core.EscObject
      extended by org.eclipse.soda.dk.core.ConfigurableObject
Direct Known Subclasses:
org.eclipse.soda.dk.testagent.TestAgent

public class ConfigurableObject
extends EscObject

Version:
1.0.0

Field Summary
 
Fields inherited from class org.eclipse.soda.dk.core.EscObject
CLONE_EXCEPTION_RESOURCE, EMPTY_BYTES, EMPTY_STRING, ERROR_OCCURRED_EXCEPTION_RESOURCE, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, INTEGER_TABLE, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE
 
Constructor Summary
ConfigurableObject()
          Constructs an instance of this class.
 
Method Summary
 java.util.Dictionary getConfigurationInformation()
          Return the property table.
 ConfigurationService getConfigurationService()
          Gets the configuration service value.
 void putConfigurationInformation(java.lang.String propertyName, java.lang.Object value)
          Put configuration information with the specified property name and value parameters.
 void setConfigurationInformation(java.util.Dictionary configurationInformation)
          Sets the configuration information value.
 void setConfigurationService(ConfigurationService configurationService)
          Sets the configuration service value.
static void validateConfiguration(java.lang.String pid, java.util.Dictionary properties, org.osgi.service.metatype.MetaTypeInformation info)
          Validate configuration with the specified pid, properties and info parameters.
 
Methods inherited from class org.eclipse.soda.dk.core.EscObject
attemptRecoveryFromError, createDefaultLogService, createException, createException, createInteger, createIntegerTable, createNumber, format, getBoolean, getCurrentTimestamp, getDefaultLogService, getDefaultResource, getErrorSeverity, getFloat, getInt, getLoadLibraryName, getLogDetails, getLogDetails0, getLogDetails1, getLogDetails2, getLogDetails3, getLogDetails4, getLogDetails5, getLogDetails6, getLogDetails7, getLogService, getLong, getObject, getOutputName, getResource, getSimpleClassName, getStaticBoolean, getStaticFloat, getStaticInt, getStaticLong, getStaticObject, getStaticString, getString, getTraceLevel, getVmLibraryVersion, handleError, handleError, handleError, handleStaticError, handleStaticException, isDebug, isTrace, loadService, log, log, report, report, report, report, report, report, reportError, reportSystemInfo, setDebug, setDefaultLogService, setLogService, setTraceLevel, shouldLog, sleep, startupEscStatic, toString, toStringConfigurationKeys, toStringInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurableObject

public ConfigurableObject()
Constructs an instance of this class.

Method Detail

validateConfiguration

public static void validateConfiguration(java.lang.String pid,
                                         java.util.Dictionary properties,
                                         org.osgi.service.metatype.MetaTypeInformation info)
                                  throws org.osgi.service.cm.ConfigurationException
Validate configuration with the specified pid, properties and info parameters.

Parameters:
pid - The pid (String) parameter.
properties - The properties (Dictionary) parameter.
info - The info (MetaTypeInformation) parameter.
Throws:
org.osgi.service.cm.ConfigurationException - Configuration Exception.

getConfigurationInformation

public java.util.Dictionary getConfigurationInformation()
Return the property table.

Returns:
Results of the get configuration information (Dictionary) value.
See Also:
putConfigurationInformation(String,Object), setConfigurationInformation(Dictionary)

getConfigurationService

public ConfigurationService getConfigurationService()
Gets the configuration service value.

Overrides:
getConfigurationService in class EscObject
Returns:
The configuration service (ConfigurationService) value.
See Also:
setConfigurationService(ConfigurationService)

putConfigurationInformation

public void putConfigurationInformation(java.lang.String propertyName,
                                        java.lang.Object value)
Put configuration information with the specified property name and value parameters.

Parameters:
propertyName - The property name (String) parameter.
value - The value (Object) parameter.
See Also:
getConfigurationInformation(), setConfigurationInformation(Dictionary)

setConfigurationInformation

public void setConfigurationInformation(java.util.Dictionary configurationInformation)
Sets the configuration information value. The configuration information (Dictionary) parameter.

Parameters:
configurationInformation - The configuration information (Dictionary) parameter.
See Also:
getConfigurationInformation(), putConfigurationInformation(String,Object)

setConfigurationService

public void setConfigurationService(ConfigurationService configurationService)
Sets the configuration service value.

Parameters:
configurationService - The configuration service (ConfigurationService) parameter.
See Also:
getConfigurationService()

1.0.0

Copyright (c) 1999, 2007 IBM