org.ow2.jasmine.jade.reflex.control
Class BasicReflexControllerMixin

java.lang.Object
  extended by org.ow2.jasmine.jade.reflex.control.BasicReflexControllerMixin
All Implemented Interfaces:
org.objectweb.fractal.julia.Controller, ReflexController

public abstract class BasicReflexControllerMixin
extends java.lang.Object
implements org.objectweb.fractal.julia.Controller, ReflexController

Provides a basic implementation of the ReflexController ReflexController interface.

Author:
Fabienne Boyer

Field Summary
 org.objectweb.fractal.api.Component _this_weaveableC
          The Component interface of the component to which this controller object belongs.
 org.objectweb.fractal.api.control.NameController _this_weaveableOptNC
          The NameController interface of the component to which this controller object belongs.
 
Method Summary
abstract  void _super_initFcController(org.objectweb.fractal.julia.InitializationContext ic)
          The initFcController method overriden by this mixin.
 org.objectweb.fractal.api.Component getCmpRef()
          return the reference of the dual component : (reference of the associated component at the execution level if this component is at the meta level, reference of the associated component at the meta level if this component is at the execution level.
 boolean getIsNotifiable()
           
 org.objectweb.fractal.api.Component getMetaComponentContainer()
          Each meta component created are added as sub component of the meta-component container
 java.lang.String getReflexAttribute(java.lang.String name)
          Get the value of a predefined reflex attribute .
 void initFcController(org.objectweb.fractal.julia.InitializationContext ic)
          Initializes the fields of this mixin from the given context, and then calls the overriden method.
 void setCmpRef(org.objectweb.fractal.api.Component ref)
          set the reference of the dual component : (reference of the associated component at the execution level if this component is at the meta level, reference of the associated component at the meta level if this component is at the execution level.
 void setIsNotifiable(boolean notifiable)
           
 void setMetaComponentContainer(org.objectweb.fractal.api.Component ref)
          Each meta component created are added as sub component of the meta-component container
 void setReflexAttribute(java.lang.String name, java.lang.String value)
          Set a predefined reflex attribute .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_this_weaveableC

public org.objectweb.fractal.api.Component _this_weaveableC
The Component interface of the component to which this controller object belongs.


_this_weaveableOptNC

public org.objectweb.fractal.api.control.NameController _this_weaveableOptNC
The NameController interface of the component to which this controller object belongs.

Method Detail

initFcController

public void initFcController(org.objectweb.fractal.julia.InitializationContext ic)
                      throws org.objectweb.fractal.api.factory.InstantiationException
Initializes the fields of this mixin from the given context, and then calls the overriden method.

Specified by:
initFcController in interface org.objectweb.fractal.julia.Controller
Parameters:
ic - information about the component to which this controller object belongs.
Throws:
org.objectweb.fractal.api.factory.InstantiationException - if the initialization fails.

setCmpRef

public void setCmpRef(org.objectweb.fractal.api.Component ref)
set the reference of the dual component : (reference of the associated component at the execution level if this component is at the meta level, reference of the associated component at the meta level if this component is at the execution level.

Specified by:
setCmpRef in interface ReflexController
Parameters:
ref - the ref of the dual component
See Also:
org.ow2.jasmine.jade.reflex.ReflexController#setCmpRef(org.objectweb.fractal.api.Component)

getCmpRef

public org.objectweb.fractal.api.Component getCmpRef()
return the reference of the dual component : (reference of the associated component at the execution level if this component is at the meta level, reference of the associated component at the meta level if this component is at the execution level.

Specified by:
getCmpRef in interface ReflexController
Returns:
the ref of the dual component
See Also:
org.ow2.jasmine.jade.reflex.ReflexController#getCmpRef()

setMetaComponentContainer

public void setMetaComponentContainer(org.objectweb.fractal.api.Component ref)
Description copied from interface: ReflexController
Each meta component created are added as sub component of the meta-component container

Specified by:
setMetaComponentContainer in interface ReflexController
Parameters:
ref - the reference to the meta-component container

getMetaComponentContainer

public org.objectweb.fractal.api.Component getMetaComponentContainer()
Description copied from interface: ReflexController
Each meta component created are added as sub component of the meta-component container

Specified by:
getMetaComponentContainer in interface ReflexController
Returns:
the reference to the meta-component container

setReflexAttribute

public void setReflexAttribute(java.lang.String name,
                               java.lang.String value)
Set a predefined reflex attribute .

Specified by:
setReflexAttribute in interface ReflexController
Parameters:
name - the name of the attribute to set.
value - the value of the attribute.

getReflexAttribute

public java.lang.String getReflexAttribute(java.lang.String name)
Get the value of a predefined reflex attribute .

Specified by:
getReflexAttribute in interface ReflexController
Parameters:
name - the name of the attribute to set.
Returns:
the value of the attribute (null if it does not exist).

getIsNotifiable

public boolean getIsNotifiable()
Specified by:
getIsNotifiable in interface ReflexController
Returns:

setIsNotifiable

public void setIsNotifiable(boolean notifiable)
Specified by:
setIsNotifiable in interface ReflexController

_super_initFcController

public abstract void _super_initFcController(org.objectweb.fractal.julia.InitializationContext ic)
                                      throws org.objectweb.fractal.api.factory.InstantiationException
The initFcController method overriden by this mixin.

Parameters:
ic - information about the component to which this controller object belongs.
Throws:
org.objectweb.fractal.api.factory.InstantiationException - if the initialization fails.


Copyright © 2008 OW2 Consortium. All Rights Reserved.