be.objectify.led.factory.type
Class ListTypeFactory

java.lang.Object
  extended by be.objectify.led.factory.type.ListTypeFactory
All Implemented Interfaces:
TypeFactory<List>

public class ListTypeFactory
extends Object
implements TypeFactory<List>

Version:
,
Author:
Steve Chaloner

Constructor Summary
ListTypeFactory(FactoryResolver factoryResolver)
           
 
Method Summary
 ListFactory createObjectFactory(Class[] classes, Field field)
          Creates a new instance of the target class with the correct runtime types.
 Class[] determineClassType(Class fieldType, GenericTypes genericTypes)
          Determines the runtime generic parameter of the target class.
 Class<List> getBoundClass()
          Get the class type handled by this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListTypeFactory

public ListTypeFactory(FactoryResolver factoryResolver)
Method Detail

createObjectFactory

public ListFactory createObjectFactory(Class[] classes,
                                       Field field)
Creates a new instance of the target class with the correct runtime types.

Specified by:
createObjectFactory in interface TypeFactory<List>
Parameters:
classes - the generic parameter types
field - the target field
Returns:
a new instance of the target class

getBoundClass

public Class<List> getBoundClass()
Get the class type handled by this factory.

Specified by:
getBoundClass in interface TypeFactory<List>
Returns:
the class

determineClassType

public Class[] determineClassType(Class fieldType,
                                  GenericTypes genericTypes)
Determines the runtime generic parameter of the target class.

Specified by:
determineClassType in interface TypeFactory<List>
Parameters:
fieldType - the class type of the field
genericTypes - the generic types declared for the field
Returns:
the runtime generic values


Copyright © 2010 Objectify. All Rights Reserved.