be.objectify.led
Interface TypeFactory<T>

All Known Implementing Classes:
EnumTypeFactory, ListTypeFactory, MapTypeFactory, SetTypeFactory

public interface TypeFactory<T>

Implementors create ObjectFactory instances that require runtime information.

Version:
,
Author:
Steve Chaloner

Method Summary
 ObjectFactory<T> 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<T> getBoundClass()
          Get the class type handled by this factory.
 

Method Detail

createObjectFactory

ObjectFactory<T> createObjectFactory(Class[] classes,
                                     Field field)
Creates a new instance of the target class with the correct runtime types.

Parameters:
classes - the generic parameter types
field - the target field
Returns:
a new instance of the target class

getBoundClass

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

Returns:
the class

determineClassType

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

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.