aokell.lib.control.factory
Class CompositeFactoryImpl

java.lang.Object
  extended by aokell.lib.control.factory.AbstractFactoryImpl
      extended by aokell.lib.control.factory.CompositeFactoryImpl
All Implemented Interfaces:
Controller, FactoryItf, Factory

public class CompositeFactoryImpl
extends AbstractFactoryImpl

Implementation of the factory interface for composite components.

Author:
Lionel Seinturier

Field Summary
 
Fields inherited from class aokell.lib.control.factory.AbstractFactoryImpl
compctrl
 
Fields inherited from interface aokell.lib.control.factory.FactoryItf
NAME, TYPE
 
Constructor Summary
CompositeFactoryImpl()
           
 
Method Summary
 Component newFcInstance()
           
 Component newFcInstance(Component component, Map newContent)
          Recursively create a new component and store the association between old instances and newly created ones in the given map.
 
Methods inherited from class aokell.lib.control.factory.AbstractFactoryImpl
cloneFcCtrl, copyAttributeControllerState, getFcContentDesc, getFcControllerDesc, getFcInstanceType, initFcCtrl, setFcCompCtrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeFactoryImpl

public CompositeFactoryImpl()
Method Detail

newFcInstance

public Component newFcInstance()
                        throws InstantiationException
Specified by:
newFcInstance in interface Factory
Specified by:
newFcInstance in class AbstractFactoryImpl
Throws:
InstantiationException

newFcInstance

public Component newFcInstance(Component component,
                               Map newContent)
                        throws InstantiationException
Recursively create a new component and store the association between old instances and newly created ones in the given map.

Parameters:
component - the component to clone
newContent - the map containing associations between old and new components
Returns:
the newly created component
Throws:
InstantiationException