org.objectweb.fractal.julia.factory
Class NameTemplateMixin
java.lang.Object
org.objectweb.fractal.julia.factory.NameTemplateMixin
- All Implemented Interfaces:
- Factory, Template
public abstract class NameTemplateMixin
- extends Object
- implements Template
Provides a name copy function to a Template
.
Requirements
- none (the template component may provide a
NameController
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_weaveableOptNC
public NameController _this_weaveableOptNC
- The weaveableOptNC field required by this mixin. This field is
supposed to reference the
NameController
interface of the component
to which this controller object belongs.
newFcControllerInstance
public Component newFcControllerInstance()
throws InstantiationException
- Calls the overriden method and then sets the name of the created component.
The name of the created component is initialized to the name of this
template, if both components have a
NameController
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.