org.objectweb.fractal.julia.factory
Class NameTemplateMixin

java.lang.Object
  extended by 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


Field Summary
 NameController _this_weaveableOptNC
          The weaveableOptNC 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 name 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_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.

Method Detail

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.