org.objectweb.fractal.juliak.membrane
Class MPrimitiveImpl

java.lang.Object
  extended by org.objectweb.fractal.juliak.membrane.MPrimitiveImpl
All Implemented Interfaces:
Component, BindingController, NameController, SuperController, SuperControllerNotifier
Direct Known Subclasses:
MCompositeImpl

public class MPrimitiveImpl
extends Object
implements Component, BindingController, NameController, SuperControllerNotifier

Implementation of the control membrane for mPrimitive components. mPrimitive components are primitive control components.

Since:
2.5
Author:
Lionel Seinturier

Field Summary
protected  Map fcInterfaces
           
protected  List fcSupers
           
 
Constructor Summary
MPrimitiveImpl(Type type, Object content)
           
 
Method Summary
 void addedToFc(Component c)
          Notifies this component that it has been added in the given component.
 void bindFc(String arg0, Object arg1)
           
 Object getFcInterface(String interfaceName)
           
 Object[] getFcInterfaces()
           
 String getFcName()
           
 Component[] getFcSuperComponents()
           
 Type getFcType()
           
 String[] listFc()
           
 Object lookupFc(String arg0)
           
 void removedFromFc(Component c)
          Notifies this component that it has been removed from the given component.
 void setFcContent(Object content)
          Set the content instance associated to this control component.
 void setFcName(String arg0)
           
 void unbindFc(String arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fcInterfaces

protected Map fcInterfaces

fcSupers

protected List fcSupers
Constructor Detail

MPrimitiveImpl

public MPrimitiveImpl(Type type,
                      Object content)
               throws InstantiationException
Throws:
InstantiationException
Method Detail

getFcType

public Type getFcType()
Specified by:
getFcType in interface Component

getFcInterface

public Object getFcInterface(String interfaceName)
                      throws NoSuchInterfaceException
Specified by:
getFcInterface in interface Component
Throws:
NoSuchInterfaceException

getFcInterfaces

public Object[] getFcInterfaces()
Specified by:
getFcInterfaces in interface Component

listFc

public String[] listFc()
Specified by:
listFc in interface BindingController

lookupFc

public Object lookupFc(String arg0)
                throws NoSuchInterfaceException
Specified by:
lookupFc in interface BindingController
Throws:
NoSuchInterfaceException

bindFc

public void bindFc(String arg0,
                   Object arg1)
            throws NoSuchInterfaceException,
                   IllegalBindingException,
                   IllegalLifeCycleException
Specified by:
bindFc in interface BindingController
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException

unbindFc

public void unbindFc(String arg0)
              throws NoSuchInterfaceException,
                     IllegalBindingException,
                     IllegalLifeCycleException
Specified by:
unbindFc in interface BindingController
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException

getFcName

public String getFcName()
Specified by:
getFcName in interface NameController

setFcName

public void setFcName(String arg0)
Specified by:
setFcName in interface NameController

getFcSuperComponents

public Component[] getFcSuperComponents()
Specified by:
getFcSuperComponents in interface SuperController

addedToFc

public void addedToFc(Component c)
Description copied from interface: SuperControllerNotifier
Notifies this component that it has been added in the given component.

Specified by:
addedToFc in interface SuperControllerNotifier
Parameters:
c - the component into which this component has been added.

removedFromFc

public void removedFromFc(Component c)
Description copied from interface: SuperControllerNotifier
Notifies this component that it has been removed from the given component.

Specified by:
removedFromFc in interface SuperControllerNotifier
Parameters:
c - the component from which this component has been removed.

setFcContent

public void setFcContent(Object content)
Set the content instance associated to this control component. This method is used in the membrane factory when instanciating an interceptor component.