public interface TransformedServiceReference<S>
extends org.osgi.framework.ServiceReference<S>
Modifier and Type | Field and Description |
---|---|
static java.util.List<java.lang.String> |
FORBIDDEN_KEYS
These properties are cannot be removed, added or updated.
|
Modifier and Type | Method and Description |
---|---|
TransformedServiceReference<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.
|
boolean |
contains(java.lang.String name)
Does the service reference contains the given property ?
|
java.lang.Object |
get(java.lang.String name)
Gets the current value of a property.
|
org.osgi.framework.ServiceReference<S> |
getWrappedReference()
Gets the wrapped service reference
|
TransformedServiceReference<S> |
removeProperty(java.lang.String name)
Removes a property from the reference.
|
static final java.util.List<java.lang.String> FORBIDDEN_KEYS
TransformedServiceReference<S> addProperty(java.lang.String name, java.lang.Object value)
name
- the property namevalue
- the value (must not be null)TransformedServiceReference<S> addPropertyIfAbsent(java.lang.String name, java.lang.Object value)
name
- the property namevalue
- the valuejava.lang.Object get(java.lang.String name)
name
- the property nameTransformedServiceReference<S> removeProperty(java.lang.String name)
name
- the property nameboolean contains(java.lang.String name)
name
- the property nameorg.osgi.framework.ServiceReference<S> getWrappedReference()
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.