aokell.lib.control.factory
Class PrimitiveFactoryImpl

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

public class PrimitiveFactoryImpl
extends AbstractFactoryImpl

Implementation of the factory interface for primitive 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
PrimitiveFactoryImpl()
           
 
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

PrimitiveFactoryImpl

public PrimitiveFactoryImpl()
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