Package com.blackrook.json.struct
Class TypeProfileFactory
java.lang.Object
com.blackrook.json.struct.TypeProfileFactory
A factory that produces type profiles for POJOs and data objects.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
An 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 class
Type profile for an unknown object that has an ambiguous signature for applying values to POJOs and beans. -
Constructor Summary
ConstructorDescriptionCreates a new TypeProfileFactory. -
Method Summary
Modifier and TypeMethodDescription<T> TypeProfileFactory.Profile<T>
getProfile
(Class<T> clazz) Creates a new profile for a provided type.
-
Constructor Details
-
TypeProfileFactory
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 Details
-
getProfile
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.
-