org.apache.felix.scrplugin.helper
Class ComponentContainer

java.lang.Object
  extended by org.apache.felix.scrplugin.helper.ComponentContainer

public class ComponentContainer
extends java.lang.Object

A ComponentContainer contains all relevant information about a component: - the class descriptor - the component descriptor - the service descriptor - reference descriptors - property descriptors


Constructor Summary
ComponentContainer(ClassDescription classDescription, ComponentDescription componentDescription)
          Create a new component container
 
Method Summary
 ClassDescription getClassDescription()
          Get the class description
 ComponentDescription getComponentDescription()
          Get the component description
 MetatypeContainer getMetatypeContainer()
           
 java.util.Map<java.lang.String,PropertyDescription> getProperties()
          Get all properties.
 java.util.Map<java.lang.String,ReferenceDescription> getReferences()
          Get all references.
 ServiceDescription getServiceDescription()
          Get the service description.
 void setMetatypeContainer(MetatypeContainer ocd)
           
 void setServiceDescription(ServiceDescription serviceDescription)
          Set the service description
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentContainer

public ComponentContainer(ClassDescription classDescription,
                          ComponentDescription componentDescription)
Create a new component container

Parameters:
classDescription - Class description
componentDescription - Component description
Method Detail

getClassDescription

public ClassDescription getClassDescription()
Get the class description

Returns:
The class description

getComponentDescription

public ComponentDescription getComponentDescription()
Get the component description

Returns:
The component description

getReferences

public java.util.Map<java.lang.String,ReferenceDescription> getReferences()
Get all references. The references are put into the map by name. This map can be modified by clients.

Returns:
The map of references

getProperties

public java.util.Map<java.lang.String,PropertyDescription> getProperties()
Get all properties. The properties are put into the map by name. This map can be modified by clients.

Returns:
The map of properties

getServiceDescription

public ServiceDescription getServiceDescription()
Get the service description.

Returns:
The service description or null

setServiceDescription

public void setServiceDescription(ServiceDescription serviceDescription)
Set the service description

Parameters:
serviceDescription - The new service description

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getMetatypeContainer

public MetatypeContainer getMetatypeContainer()

setMetatypeContainer

public void setMetatypeContainer(MetatypeContainer ocd)


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