org.jboss.osgi.testing.internal
Class EmbeddedServiceReference

java.lang.Object
  extended by org.jboss.osgi.testing.internal.EmbeddedServiceReference
All Implemented Interfaces:
OSGiServiceReference

public class EmbeddedServiceReference
extends Object
implements OSGiServiceReference

An embedded implementation of the OSGiServiceReference

Since:
25-Sep-2008
Author:
Thomas.Diesler@jboss.org

Constructor Summary
EmbeddedServiceReference(org.osgi.framework.ServiceReference sref)
           
 
Method Summary
 Object getProperty(String key)
          Returns the property value to which the specified property key is mapped in the properties Dictionary object of the service referenced by this ServiceReference object.
 String[] getPropertyKeys()
          Returns an array of the keys in the properties Dictionary object of the service referenced by this ServiceReference object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedServiceReference

public EmbeddedServiceReference(org.osgi.framework.ServiceReference sref)
Method Detail

getProperty

public Object getProperty(String key)
Description copied from interface: OSGiServiceReference
Returns the property value to which the specified property key is mapped in the properties Dictionary object of the service referenced by this ServiceReference object.

Specified by:
getProperty in interface OSGiServiceReference

getPropertyKeys

public String[] getPropertyKeys()
Description copied from interface: OSGiServiceReference
Returns an array of the keys in the properties Dictionary object of the service referenced by this ServiceReference object.

Specified by:
getPropertyKeys in interface OSGiServiceReference


Copyright © 2010. All Rights Reserved.