Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.osgi.services
Class ServiceReferenceImpl

java.lang.Object
  extended by org.nuxeo.osgi.services.ServiceReferenceImpl
All Implemented Interfaces:
Comparable, org.osgi.framework.ServiceReference

public class ServiceReferenceImpl
extends Object
implements org.osgi.framework.ServiceReference

Dummy service reference. servicefactory not supported.

Author:
Bogdan Stefanescu

Constructor Summary
ServiceReferenceImpl(org.osgi.framework.Bundle bundle, Object service)
           
 
Method Summary
 int compareTo(Object reference)
           
 org.osgi.framework.Bundle getBundle()
           
 Object getProperty(String key)
           
 String[] getPropertyKeys()
           
 Object getService()
           
 org.osgi.framework.Bundle[] getUsingBundles()
           
 boolean isAssignableTo(org.osgi.framework.Bundle bundle, String className)
           
 void setProperties(Dictionary<String,?> dict)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceReferenceImpl

public ServiceReferenceImpl(org.osgi.framework.Bundle bundle,
                            Object service)
Method Detail

getProperty

public Object getProperty(String key)
Specified by:
getProperty in interface org.osgi.framework.ServiceReference

getPropertyKeys

public String[] getPropertyKeys()
Specified by:
getPropertyKeys in interface org.osgi.framework.ServiceReference

getBundle

public org.osgi.framework.Bundle getBundle()
Specified by:
getBundle in interface org.osgi.framework.ServiceReference

getUsingBundles

public org.osgi.framework.Bundle[] getUsingBundles()
Specified by:
getUsingBundles in interface org.osgi.framework.ServiceReference

isAssignableTo

public boolean isAssignableTo(org.osgi.framework.Bundle bundle,
                              String className)
Specified by:
isAssignableTo in interface org.osgi.framework.ServiceReference

compareTo

public int compareTo(Object reference)
Specified by:
compareTo in interface Comparable
Specified by:
compareTo in interface org.osgi.framework.ServiceReference

getService

public Object getService()

setProperties

public void setProperties(Dictionary<String,?> dict)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.