com.sdicons.json.helper
Class HelperRepository<T extends Helper>
java.lang.Object
com.sdicons.json.helper.HelperRepository<T>
public class HelperRepository<T extends Helper>
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HelperRepository
public HelperRepository()
addHelper
public void addHelper(T aHelper)
- Add a helper to the repository.
- Parameters:
aHelper
- The helper to add.
findHelper
public T findHelper(Class aClass)
- 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
public String prettyPrint()
Copyright © 2011. All Rights Reserved.