be.objectify.led.factory.type
Class SetTypeFactory

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

public class SetTypeFactory
extends Object
implements TypeFactory<Set>

Version:
,
Author:
Steve Chaloner

Constructor Summary
SetTypeFactory(FactoryResolver factoryResolver)
           
 
Method Summary
 SetFactory 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<Set> 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

SetTypeFactory

public SetTypeFactory(FactoryResolver factoryResolver)
Method Detail

createObjectFactory

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

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

getBoundClass

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

Specified by:
getBoundClass in interface TypeFactory<Set>
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<Set>
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.