org.objectweb.fractal.julia.control.content
Class BindingContentMixin

java.lang.Object
  extended by org.objectweb.fractal.julia.control.content.BindingContentMixin
All Implemented Interfaces:
ContentController

public abstract class BindingContentMixin
extends Object
implements ContentController

Provides binding related checks to a ContentController.

Requirements


Field Summary
 Component _this_weaveableOptC
          The weaveableOptC field required by this mixin.
 
Method Summary
abstract  void _super_removeFcSubComponent(Component subComponent)
          The removeFcSubComponent method overriden by this mixin.
 void checkFcRemoveSubComponent(Component subComponent)
          Checks that the removal of the given sub component will not create non local bindings.
 void removeFcSubComponent(Component subComponent)
          Checks that this operation will not create non local bindings, and then calls the overriden method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.fractal.api.control.ContentController
addFcSubComponent, getFcInternalInterface, getFcInternalInterfaces, getFcSubComponents
 

Field Detail

_this_weaveableOptC

public Component _this_weaveableOptC
The weaveableOptC field required by this mixin. This field is supposed to reference the Component interface of the component to which this controller object belongs.

Method Detail

removeFcSubComponent

public void removeFcSubComponent(Component subComponent)
                          throws IllegalContentException,
                                 IllegalLifeCycleException
Checks that this operation will not create non local bindings, and then calls the overriden method.

Specified by:
removeFcSubComponent in interface ContentController
Parameters:
subComponent - the component to be removed from this component.
Throws:
IllegalContentException - if the given component cannot be removed from this component.
IllegalLifeCycleException - if this component has a LifeCycleController interface, but it is not in an appropriate state to perform this operation.

checkFcRemoveSubComponent

public void checkFcRemoveSubComponent(Component subComponent)
                               throws IllegalBindingException
Checks that the removal of the given sub component will not create non local bindings.

Parameters:
subComponent - a sub component that will be removed from this component.
Throws:
IllegalBindingException - if the removal of the given sub component would create non local bindings.

_super_removeFcSubComponent

public abstract void _super_removeFcSubComponent(Component subComponent)
                                          throws IllegalContentException,
                                                 IllegalLifeCycleException
The removeFcSubComponent method overriden by this mixin.

Parameters:
subComponent - the component to be removed from this component.
Throws:
IllegalContentException - if the given component cannot be removed from this component.
IllegalLifeCycleException - if this component has a LifeCycleController interface, but it is not in an appropriate state to perform this operation.