org.apache.commons.flatfile.entityfactory
Class CompositeEntityFactory

java.lang.Object
  extended by org.apache.commons.flatfile.entityfactory.CompositeEntityFactory
All Implemented Interfaces:
EntityFactory

public class CompositeEntityFactory
extends Object
implements EntityFactory

Delegates to 0..n EntityFactories.

Version:
$Revision: 758023 $ $Date: 2009-03-24 16:09:19 -0500 (Tue, 24 Mar 2009) $

Constructor Summary
CompositeEntityFactory(EntityFactory[] delegates)
          Create a new CompositeEntityFactory.
 
Method Summary
 Entity getEntity(Object cue)
          Get an Entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeEntityFactory

public CompositeEntityFactory(EntityFactory[] delegates)
Create a new CompositeEntityFactory.

Parameters:
delegates - EntityFactory[]
Method Detail

getEntity

public Entity getEntity(Object cue)
Get an Entity.

Specified by:
getEntity in interface EntityFactory
Parameters:
cue - an Object that may provide a cue as to what type of Entity is required.
Returns:
Entity.


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.