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

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

public abstract class LifeCycleContentMixin
extends Object
implements ContentController

Provides lifecycle related checks to a ContentController.

Requirements


Field Summary
 Component _this_weaveableOptC
          The weaveableOptC field required by this mixin.
 LifeCycleController _this_weaveableOptLC
          The weaveableOptLC field required by this mixin.
 
Method Summary
abstract  void _super_removeFcSubComponent(Component subComponent)
          The removeFcSubComponent method overriden by this mixin.
 void removeFcSubComponent(Component subComponent)
          Checks that the component is stopped 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.


_this_weaveableOptLC

public LifeCycleController _this_weaveableOptLC
The weaveableOptLC field required by this mixin. This field is supposed to reference the LifeCycleController interface of the component to which this controller object belongs.

Method Detail

removeFcSubComponent

public void removeFcSubComponent(Component subComponent)
                          throws IllegalContentException,
                                 IllegalLifeCycleException
Checks that the component is stopped 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.

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