public class TransformedServiceReferenceImpl<S> extends java.lang.Object implements TransformedServiceReference<S>
FORBIDDEN_KEYS
Constructor and Description |
---|
TransformedServiceReferenceImpl(org.osgi.framework.ServiceReference<S> origin) |
Modifier and Type | Method and Description |
---|---|
TransformedServiceReferenceImpl<S> |
addProperty(java.lang.String name,
java.lang.Object value)
Adds a property to the reference
|
TransformedServiceReference<S> |
addPropertyIfAbsent(java.lang.String name,
java.lang.Object value)
Adds a property to the service reference if this property is not already set on the reference.
|
int |
compareTo(java.lang.Object reference)
Compares two service references.
|
boolean |
contains(java.lang.String name)
Does the service reference contains the given property ?
|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(java.lang.String name)
Gets the current value of a property.
|
org.osgi.framework.Bundle |
getBundle() |
java.lang.Object |
getProperty(java.lang.String key) |
java.lang.String[] |
getPropertyKeys() |
org.osgi.framework.Bundle[] |
getUsingBundles() |
org.osgi.framework.ServiceReference<S> |
getWrappedReference()
Gets the wrapped service reference
|
int |
hashCode() |
boolean |
isAssignableTo(org.osgi.framework.Bundle bundle,
java.lang.String className) |
TransformedServiceReferenceImpl<S> |
removeProperty(java.lang.String name)
Removes a property from the reference.
|
java.lang.String |
toString() |
public TransformedServiceReferenceImpl(org.osgi.framework.ServiceReference<S> origin)
public TransformedServiceReferenceImpl<S> addProperty(java.lang.String name, java.lang.Object value)
TransformedServiceReference
addProperty
in interface TransformedServiceReference<S>
name
- the property namevalue
- the value (must not be null)public TransformedServiceReference<S> addPropertyIfAbsent(java.lang.String name, java.lang.Object value)
TransformedServiceReference
addPropertyIfAbsent
in interface TransformedServiceReference<S>
name
- the property namevalue
- the valuepublic java.lang.Object get(java.lang.String name)
TransformedServiceReference
get
in interface TransformedServiceReference<S>
name
- the property namepublic TransformedServiceReferenceImpl<S> removeProperty(java.lang.String name)
TransformedServiceReference
removeProperty
in interface TransformedServiceReference<S>
name
- the property namepublic boolean contains(java.lang.String name)
TransformedServiceReference
contains
in interface TransformedServiceReference<S>
name
- the property namepublic org.osgi.framework.ServiceReference<S> getWrappedReference()
TransformedServiceReference
getWrappedReference
in interface TransformedServiceReference<S>
public java.lang.Object getProperty(java.lang.String key)
getProperty
in interface org.osgi.framework.ServiceReference<S>
public java.lang.String[] getPropertyKeys()
getPropertyKeys
in interface org.osgi.framework.ServiceReference<S>
public org.osgi.framework.Bundle getBundle()
getBundle
in interface org.osgi.framework.ServiceReference<S>
public org.osgi.framework.Bundle[] getUsingBundles()
getUsingBundles
in interface org.osgi.framework.ServiceReference<S>
public boolean isAssignableTo(org.osgi.framework.Bundle bundle, java.lang.String className)
isAssignableTo
in interface org.osgi.framework.ServiceReference<S>
public int compareTo(java.lang.Object reference)
compareTo
in interface java.lang.Comparable<java.lang.Object>
compareTo
in interface org.osgi.framework.ServiceReference<S>
reference
- the referencepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.