org.objectweb.fractal.julia.factory
Interface Template

All Superinterfaces:
Factory
All Known Implementing Classes:
AttributeTemplateMixin, BasicTemplateMixin, NameTemplateMixin, SingletonTemplateMixin

public interface Template
extends Factory

An extended Factory interface.


Method Summary
 Component newFcControllerInstance()
          Instantiates only the controller part of the component normally instantiated by this template.
 
Methods inherited from interface org.objectweb.fractal.api.factory.Factory
getFcContentDesc, getFcControllerDesc, getFcInstanceType, newFcInstance
 

Method Detail

newFcControllerInstance

Component newFcControllerInstance()
                                  throws InstantiationException
Instantiates only the controller part of the component normally instantiated by this template. Because of component sharing, the 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.

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