Interface JaxbObjectWrapperFactory
- All Known Implementing Classes:
JaxbDoubleWrapperFactory,JaxbListWrapperFactory,JaxbLongWrapperFactory,JaxbMapWrapperFactory,JaxbStringWrapperFactory
public interface JaxbObjectWrapperFactory
A jaxb object wrapper factory which create a wrapper for given supported object.
-
Method Summary
Modifier and TypeMethodDescriptionCreates wrapper for given object.Class<?>Returns runtime class of wrapper produced by this factory.booleanChecks if class is supported by this factory
-
Method Details
-
createWrapper
Creates wrapper for given object. May throw runtime exception if object is not supported- Parameters:
o- object to wrap- Returns:
- wrapped object
-
getWrapperClass
Class<?> getWrapperClass()Returns runtime class of wrapper produced by this factory.- Returns:
- class of wrapper produced by this factory.
-
supports
Checks if class is supported by this factory- Parameters:
clazz- class for check- Returns:
- true if class is supported
-