org.objectweb.dsrg.sofa.microarchitecture
Class ComponentFactory

java.lang.Object
  extended by org.objectweb.dsrg.sofa.microarchitecture.ComponentFactory

public class ComponentFactory
extends java.lang.Object

Static class used to instanciate component instance.


Constructor Summary
ComponentFactory()
           
 
Method Summary
static MIComponent createComponent(Architecture arch, Frame frame, java.lang.Iterable<Aspect> aspects, java.lang.Iterable<Bindable> units)
          Creates new instance of specified component and returns reference to its control interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentFactory

public ComponentFactory()
Method Detail

createComponent

public static MIComponent createComponent(Architecture arch,
                                          Frame frame,
                                          java.lang.Iterable<Aspect> aspects,
                                          java.lang.Iterable<Bindable> units)
                                   throws InstantiationException
Creates new instance of specified component and returns reference to its control interface.

Parameters:
arch - Architecture of the component instance to instantiate.
frame - Frame which the instance should implement.
aspects - Aspects to apply on created component.
units - Code fragments to connect on business interfaces. Can be null if the component is not composite and have no business interfaces.
Returns:
Reference to Component control interface.
Throws:
InstantiationException