org.apache.felix.servicebinder
Class InstanceMetadata

java.lang.Object
  extended by org.apache.felix.servicebinder.InstanceMetadata

public class InstanceMetadata
extends java.lang.Object

Description of an instance entry in the descriptor file * * @author Felix Project Team


Method Summary
 java.util.Collection getDependencies()
          Returns the dependency descriptors
 java.lang.String getImplementorName()
          Returns the name of the implementor
 InstanceMetadata getInstantiates()
          Get the meta data of the instances
 java.lang.String[] getInterfaces()
          Returns the implemented interfaces
 java.util.Properties getProperties()
          Returns the property descriptors
 boolean instanceRegistersServices()
          Test to see if this descriptor describes a bundle-to-service dependency that means that the instance does not register any services.
 boolean isFactory()
          Test to see if this service is a factory
 boolean isInstance()
          Test to see if this descriptor is registered from an instance from a factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getImplementorName

public java.lang.String getImplementorName()
Returns the name of the implementor

Returns:
the name of the implementor

getInterfaces

public java.lang.String[] getInterfaces()
Returns the implemented interfaces

Returns:
the implemented interfaces as a string array

getProperties

public java.util.Properties getProperties()
Returns the property descriptors

Returns:
the property descriptors as a Collection

getDependencies

public java.util.Collection getDependencies()
Returns the dependency descriptors

Returns:
a Collection of dependency descriptors

isFactory

public boolean isFactory()
Test to see if this service is a factory

Returns:
true if it is a factory, false otherwise

getInstantiates

public InstanceMetadata getInstantiates()
Get the meta data of the instances

Returns:
the instance metadata

instanceRegistersServices

public boolean instanceRegistersServices()
Test to see if this descriptor describes a bundle-to-service dependency that means that the instance does not register any services.

Returns:
true if the dependency is bundle-to-service

isInstance

public boolean isInstance()
Test to see if this descriptor is registered from an instance from a factory.

Returns:
true if this descriptor is registered from an instance from a factory.