|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.fractal.julia.factory.BasicTemplateMixin
public abstract class BasicTemplateMixin
Provides a basic implementation of the Template
interface.
Requirements (here "sub template" means "any direct or indirect sub
template")
ComponentType
.Template
interface (and the Component
interface).ContentController
interface, then the components instantiated by this
template component must also have the ContentController
interface.
Likewise for the BindingController
interface.Interface
interface. Moreover, the owner of this
interface must be a (sub) template of this template component.
Field Summary | |
---|---|
Component |
_this_weaveableC
The weaveableC field required by this mixin. |
Object[] |
fcContent
The controller and content descriptors of the components instantiated by this template. |
Type |
fcInstanceType
The functional type of the components instantiated by this template. |
Method Summary | |
---|---|
abstract void |
_super_initFcController(InitializationContext ic)
The initFcController method overriden
by this mixin. |
Object |
getFcContentDesc()
|
Object |
getFcControllerDesc()
|
Type |
getFcInstanceType()
|
void |
initFcController(InitializationContext ic)
Initializes the fields of this mixin and then calls the overriden method. |
Component |
newFcControllerInstance()
Instantiates only the controller part of the component normally instantiated by this template. |
Component |
newFcInstance()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Type fcInstanceType
public Object[] fcContent
public Component _this_weaveableC
Component
interface of the component to
which this controller object belongs.
Method Detail |
---|
public void initFcController(InitializationContext ic) throws InstantiationException
initFcController
in interface Controller
ic
- information about the component to which this controller object
belongs.
InstantiationException
- if the initialization fails.public Type getFcInstanceType()
getFcInstanceType
in interface Factory
public Object getFcControllerDesc()
getFcControllerDesc
in interface Factory
public Object getFcContentDesc()
getFcContentDesc
in interface Factory
public Component newFcInstance() throws InstantiationException
newFcInstance
in interface Factory
InstantiationException
public Component newFcControllerInstance() throws InstantiationException
Template
newFcInstance
method cannot be implemented by just calling
itself recursively on the sub templates of this template (otherwise some
sub templates may be instantiated several times). Hence this method.
newFcControllerInstance
in interface Template
InstantiationException
- if the component controller cannot be
instantiated.public abstract void _super_initFcController(InitializationContext ic) throws InstantiationException
initFcController
method overriden
by this mixin.
ic
- information about the component to which this controller object
belongs.
InstantiationException
- if the initialization fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |