org.apache.felix.ipojo.handlers.providedservice
Class ProvidedServiceDescription

java.lang.Object
  extended by org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceDescription

public class ProvidedServiceDescription
extends Object

Provided Service Description.

Author:
Felix Project Team

Field Summary
static int REGISTERED
          State : the service is registered.
static int UNREGISTERED
          State : the service is unregistered.
 
Constructor Summary
ProvidedServiceDescription(ProvidedService ps)
          Constructor.
 
Method Summary
 void addProperties(Dictionary props)
          Adds and Updates service properties.
 String getController()
          Gets the controller value as a String.
 String getController(String specification)
          Gets the controller value as a String.
 Properties getProperties()
          Gets the list of properties.
 Object getService()
          Gets the 'main' service object.
 ServiceReference getServiceReference()
          Gets the service reference.
 Object[] getServices()
           
 String[] getServiceSpecifications()
          Gets the list of provided service specifications.
 int getState()
          Gets provided service state.
 void removeProperties(Dictionary props)
          Removes service properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNREGISTERED

public static final int UNREGISTERED
State : the service is unregistered.

See Also:
Constant Field Values

REGISTERED

public static final int REGISTERED
State : the service is registered.

See Also:
Constant Field Values
Constructor Detail

ProvidedServiceDescription

public ProvidedServiceDescription(ProvidedService ps)
Constructor.

Parameters:
ps - the described provided service.
Method Detail

getServiceSpecifications

public String[] getServiceSpecifications()
Gets the list of provided service specifications.

Returns:
the provided contract name.

getProperties

public Properties getProperties()
Gets the list of properties. A copy of the actual property set is returned.

Returns:
the properties.

addProperties

public void addProperties(Dictionary props)
Adds and Updates service properties. Existing properties are updated. New ones are added.

Parameters:
props - the new properties

removeProperties

public void removeProperties(Dictionary props)
Removes service properties.

Parameters:
props - the properties to remove

getState

public int getState()
Gets provided service state.

Returns:
the state of the provided service (UNREGISTERED | REGISTRED).

getController

public String getController()
Gets the controller value as a String.

Returns:
the value

getController

public String getController(String specification)
Gets the controller value as a String.

Parameters:
specification -
Returns:
the value

getServiceReference

public ServiceReference getServiceReference()
Gets the service reference.

Returns:
the service reference (null if the service is unregistered).

getService

public Object getService()
Gets the 'main' service object.

Returns:
the 'main' service object or null if no service object are created.

getServices

public Object[] getServices()


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.