public class ProvidedServiceDescription
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
REGISTERED
State : the service is registered.
|
static int |
UNREGISTERED
State : the service is unregistered.
|
| Constructor and Description |
|---|
ProvidedServiceDescription(ProvidedService ps)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ProvidedServiceListener listener)
Add the given listener to the provided service handler's list of listeners.
|
void |
addProperties(java.util.Dictionary props)
Adds and Updates service properties.
|
java.lang.String |
getController()
Gets the controller value as a String.
|
java.lang.String |
getController(java.lang.String specification)
Gets the controller value as a String.
|
java.lang.Class<? extends CreationStrategy> |
getCreationStrategy() |
int |
getPolicy() |
java.util.Properties |
getProperties()
Gets the list of properties.
|
ProvidedService |
getProvidedService()
Gets the represented provided service.
|
java.lang.Object |
getService()
Gets the 'main' service object.
|
org.osgi.framework.ServiceReference |
getServiceReference()
Gets the service reference.
|
java.lang.Object[] |
getServices() |
java.lang.String[] |
getServiceSpecifications()
Gets the list of provided service specifications.
|
int |
getState()
Gets provided service state.
|
void |
removeListener(ProvidedServiceListener listener)
Remove the given listener from the provided service handler's list of listeners.
|
void |
removeProperties(java.util.Dictionary props)
Removes service properties.
|
public static final int UNREGISTERED
public static final int REGISTERED
public ProvidedServiceDescription(ProvidedService ps)
ps - the described provided service.public ProvidedService getProvidedService()
public java.lang.String[] getServiceSpecifications()
public java.util.Properties getProperties()
public void addProperties(java.util.Dictionary props)
props - the new propertiespublic void removeProperties(java.util.Dictionary props)
props - the properties to removepublic int getState()
public java.lang.String getController()
public java.lang.String getController(java.lang.String specification)
specification - public org.osgi.framework.ServiceReference getServiceReference()
public java.lang.Object getService()
null
if no service object are created.public java.lang.Object[] getServices()
public int getPolicy()
public java.lang.Class<? extends CreationStrategy> getCreationStrategy()
public void addListener(ProvidedServiceListener listener)
listener - the ProvidedServiceListener object to be addedjava.lang.NullPointerException - if listener is nullpublic void removeListener(ProvidedServiceListener listener)
listener - the ProvidedServiceListener object to be removedjava.lang.NullPointerException - if listener is nulljava.util.NoSuchElementException - if listener wasn't present the in provided service handler's list of listenersCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.