org.ops4j.pax.radman.service.common.internal
Class OSGiContainerInfoServiceImpl

java.lang.Object
  extended by org.ops4j.pax.radman.service.common.internal.OSGiContainerInfoServiceImpl
All Implemented Interfaces:
OSGiContainerInfoService, org.osgi.service.cm.ManagedService

public final class OSGiContainerInfoServiceImpl
extends java.lang.Object
implements OSGiContainerInfoService, org.osgi.service.cm.ManagedService

Implementation class for OSGiContainerInfoService.

Since:
0.1.0
Author:
Johnathan T. Marchant (jtmarchant@gmail.com)

Field Summary
static java.lang.String[] SERVICE_NAMES
          OSGi service names.
static java.lang.String SERVICE_PID
          The service pid of the OSGiContainerInfoService service.
static java.util.Properties SERVICE_PROPERTIES
           
 
Fields inherited from interface org.ops4j.pax.radman.service.common.OSGiContainerInfoService
KEY_FRAMEWORK_LANGUAGE, KEY_FRAMEWORK_OS_NAME, KEY_FRAMEWORK_OS_VERSION, KEY_FRAMEWORK_PROCESSOR, KEY_FRAMEWORK_VENDOR, KEY_FRAMEWORK_VERSION
 
Method Summary
 java.util.Set getAllServices()
          Returns all the available services in the framework
 java.util.Properties getProperties()
          Gets the standard OSGi framework properties.
 java.lang.String getProperty(java.lang.String property)
          Gets the value of specified framework property.
 void updated(java.util.Dictionary dictionary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAMES

public static final java.lang.String[] SERVICE_NAMES
OSGi service names.

Since:
0.1.0

SERVICE_PID

public static final java.lang.String SERVICE_PID
The service pid of the OSGiContainerInfoService service.

Since:
0.1.0
See Also:
Constant Field Values

SERVICE_PROPERTIES

public static final java.util.Properties SERVICE_PROPERTIES
Method Detail

getProperty

public final java.lang.String getProperty(java.lang.String property)
                                   throws java.lang.IllegalArgumentException
Gets the value of specified framework property.

Specified by:
getProperty in interface OSGiContainerInfoService
Parameters:
property - The property whose value to get.
Returns:
The value of specified property or null if it doesn't exist.
Throws:
java.lang.IllegalArgumentException - Thrown if the specified property is null.
Since:
0.1.0

getProperties

public final java.util.Properties getProperties()
Gets the standard OSGi framework properties.

Specified by:
getProperties in interface OSGiContainerInfoService
Returns:
The standard OSGi properties.
Since:
0.1.0

getAllServices

public final java.util.Set getAllServices()
Returns all the available services in the framework

Specified by:
getAllServices in interface OSGiContainerInfoService
Returns:
The available services in the framework
Since:
0.1.0

updated

public final void updated(java.util.Dictionary dictionary)
                   throws org.osgi.service.cm.ConfigurationException
Specified by:
updated in interface org.osgi.service.cm.ManagedService
Throws:
org.osgi.service.cm.ConfigurationException


Copyright © 2008. All Rights Reserved.