org.apache.sling.commons.testing.osgi
Class MockServiceReference

java.lang.Object
  extended by org.apache.sling.commons.testing.osgi.MockServiceReference
All Implemented Interfaces:
java.lang.Comparable, org.osgi.framework.ServiceReference

public class MockServiceReference
extends java.lang.Object
implements org.osgi.framework.ServiceReference


Constructor Summary
MockServiceReference(org.osgi.framework.Bundle bundle)
           
 
Method Summary
 int compareTo(java.lang.Object reference)
           
 org.osgi.framework.Bundle getBundle()
           
 java.lang.Object getProperty(java.lang.String key)
           
 java.lang.String[] getPropertyKeys()
           
 org.osgi.framework.Bundle[] getUsingBundles()
           
 boolean isAssignableTo(org.osgi.framework.Bundle bundle, java.lang.String className)
           
 void setProperty(java.lang.String key, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockServiceReference

public MockServiceReference(org.osgi.framework.Bundle bundle)
Method Detail

getBundle

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

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)

getProperty

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

getPropertyKeys

public java.lang.String[] getPropertyKeys()
Specified by:
getPropertyKeys 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,
                              java.lang.String className)
Specified by:
isAssignableTo in interface org.osgi.framework.ServiceReference

compareTo

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


Copyright © 2007-2009. All Rights Reserved.