org.objectweb.fractal.julia.factory
Class AttributeTemplateMixin
java.lang.Object
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
- none (the template component may provide a
CloneableAttributeController
interface, but this is not mandatory - in this
case this mixin does nothing).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_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.
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.