Package com.blackrook.redis.struct
Class TypeProfileFactory
- java.lang.Object
 - 
- com.blackrook.redis.struct.TypeProfileFactory
 
 
- 
public class TypeProfileFactory extends Object
A factory that produces type profiles for POJOs and data objects.- Author:
 - Matthew Tropiano
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTypeProfileFactory.MemberPolicyAn interface for figuring out whether to ignore certain fields or methods on an object that a profile is being generated for (if they are already going to pass testing for includable fields).static classTypeProfileFactory.Profile<T>Type profile for an unknown object that has an ambiguous signature for applying values to POJOs and beans. 
- 
Constructor Summary
Constructors Constructor Description TypeProfileFactory(TypeProfileFactory.MemberPolicy policy)Creates a new TypeProfileFactory. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TypeProfileFactory.Profile<T>getProfile(Class<T> clazz)Creates a new profile for a provided type. 
 - 
 
- 
- 
Constructor Detail
- 
TypeProfileFactory
public TypeProfileFactory(TypeProfileFactory.MemberPolicy policy)
Creates a new TypeProfileFactory. This creates type profiles using an additional policy that changes method/field handling for each type.- Parameters:
 policy- the member policy.
 
 - 
 
- 
Method Detail
- 
getProfile
public <T> TypeProfileFactory.Profile<T> getProfile(Class<T> clazz)
Creates a new profile for a provided type. Generated profiles are stored in memory, and retrieved again by class type.This method is thread-safe.
- Type Parameters:
 T- the class type.- Parameters:
 clazz- the class.- Returns:
 - a new profile.
 
 
 - 
 
 -