org.apache.felix.servicebinder
Class InstanceMetadata

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

public class InstanceMetadata
extends Object

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


Method Summary
 Collection getDependencies()
          Returns the dependency descriptors
 String getImplementorName()
          Returns the name of the implementor
 InstanceMetadata getInstantiates()
          Get the meta data of the instances
 String[] getInterfaces()
          Returns the implemented interfaces
 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 String getImplementorName()
Returns the name of the implementor

Returns:
the name of the implementor

getInterfaces

public String[] getInterfaces()
Returns the implemented interfaces

Returns:
the implemented interfaces as a string array

getProperties

public Properties getProperties()
Returns the property descriptors

Returns:
the property descriptors as a Collection

getDependencies

public 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.


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