org.objectweb.fractal.julia.factory
Class AttributeTemplateMixin

java.lang.Object
  extended by org.objectweb.fractal.julia.factory.AttributeTemplateMixin
All Implemented Interfaces:
Factory, Template

public abstract class AttributeTemplateMixin
extends Object
implements Template

Provides an attribute copy function to a Template.

Requirements


Field Summary
 CloneableAttributeController _this_weaveableOptCAC
          The weaveableOptcCAC field required by this mixin.
 
Method Summary
abstract  Component _super_newFcControllerInstance()
          The newFcControllerInstance overriden by this mixin.
 Component newFcControllerInstance()
          Calls the overriden method and then sets the attributes of the created component.
 
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.factory.Factory
getFcContentDesc, getFcControllerDesc, getFcInstanceType, newFcInstance
 

Field Detail

_this_weaveableOptCAC

public CloneableAttributeController _this_weaveableOptCAC
The weaveableOptcCAC field required by this mixin. This field is supposed to reference the CloneableAttributeController interface of the component to which this controller object belongs.

Method Detail

newFcControllerInstance

public Component newFcControllerInstance()
                                  throws InstantiationException
Calls the overriden method and then sets the attributes of the created component. The attributes of the created component are initialized from the attributes name of this template, if the template has a CloneableAttributeController interface, and if the created component has an AttributeController interface (otherwise this mixin does nothing).

Specified by:
newFcControllerInstance in interface Template
Returns:
the instantiated component.
Throws:
InstantiationException - if the component controller cannot be instantiated.

_super_newFcControllerInstance

public abstract Component _super_newFcControllerInstance()
                                                  throws InstantiationException
The newFcControllerInstance overriden by this mixin.

Returns:
the instantiated component.
Throws:
InstantiationException - if the component controller cannot be instantiated.