be.objectify.led.factory.type
Class ListTypeFactory
java.lang.Object
be.objectify.led.factory.type.ListTypeFactory
- All Implemented Interfaces:
- TypeFactory<List>
public class ListTypeFactory
- extends Object
- implements TypeFactory<List>
- Version:
- ,
- Author:
- Steve Chaloner
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListTypeFactory
public ListTypeFactory(FactoryResolver factoryResolver)
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 typesfield - 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 fieldgenericTypes - the generic types declared for the field
- Returns:
- the runtime generic values
Copyright © 2010 Objectify. All Rights Reserved.