Package com.sdicons.json.helper
Class HelperRepository<T extends Helper>
java.lang.Object
com.sdicons.json.helper.HelperRepository<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
HelperRepository.HelperTreeNode<T extends Helper>
private static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a helper to the repository.findHelper
(Class aClass) Lookup a helper in the repository.
-
Field Details
-
root
-
-
Constructor Details
-
HelperRepository
public HelperRepository()
-
-
Method Details
-
addHelper
Add a helper to the repository.- Parameters:
aHelper
- The helper to add.
-
findHelper
Lookup a helper in the repository.- Parameters:
aClass
- The class for which a helper is wanted.- Returns:
- The corresponding helper. There is always a general fallback helper which uses introspection to serialize the properties of a JavaBean. This property helper is always returned as a last possibility. So this method always returns a helper.
-
prettyPrint
-