org.ops4j.pax.radman.service.bundleManager
Class OSGiServiceReference

java.lang.Object
  extended by org.ops4j.pax.radman.service.bundleManager.OSGiServiceReference
All Implemented Interfaces:
java.io.Serializable

public final class OSGiServiceReference
extends java.lang.Object
implements java.io.Serializable

OSGiServiceReference is synomy to ServiceReference.

Since:
0.1.0
Author:
Edward Yakop, Johnathan T. Marchant
See Also:
Serialized Form

Constructor Summary
OSGiServiceReference(org.osgi.framework.ServiceReference reference)
          Construct an instance of OSGiServiceReference with the specified argument.
 
Method Summary
static java.util.List<OSGiServiceReference> createAll(org.osgi.framework.ServiceReference... serviceReferences)
          Creates a set of OSGiServiceReference from the specified service references
 boolean equals(java.lang.Object o)
           
 java.lang.String getBundleSymbolicName()
          Returns the bundle symbolic name that register this service instance.
 java.lang.String getBundleVersion()
          Returns the bundle version that register this service instance.
 java.lang.String[] getServiceNames()
          Returns the services names of this OSGiServiceReferences.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiServiceReference

public OSGiServiceReference(org.osgi.framework.ServiceReference reference)
                     throws java.lang.IllegalArgumentException
Construct an instance of OSGiServiceReference with the specified argument.

Parameters:
reference - The service reference. This argument must not be null.
Throws:
java.lang.IllegalArgumentException - Thrown if the specified reference is null.
Since:
0.1.0
Method Detail

getServiceNames

public final java.lang.String[] getServiceNames()
Returns the services names of this OSGiServiceReferences.

Returns:
The service names.
Since:
0.1.0

getBundleSymbolicName

public final java.lang.String getBundleSymbolicName()
Returns the bundle symbolic name that register this service instance.

Returns:
The bundle symbolic name that register this service instance.
Since:
0.1.0

getBundleVersion

public final java.lang.String getBundleVersion()
Returns the bundle version that register this service instance.

Returns:
The bundle version that register this service instance.
Since:
0.1.0

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

createAll

public static java.util.List<OSGiServiceReference> createAll(org.osgi.framework.ServiceReference... serviceReferences)
Creates a set of OSGiServiceReference from the specified service references

Parameters:
serviceReferences - The service references to createAll the set of OSGiServiceReference from.
Returns:
A set of OSGiServiceReference or an empty set if serviceReferences is null or empty.


Copyright © 2008. All Rights Reserved.