Interface JaxbObjectWrapperFactory
-
- All Known Implementing Classes:
JaxbDoubleWrapperFactory,JaxbListWrapperFactory,JaxbLongWrapperFactory,JaxbMapWrapperFactory,JaxbStringWrapperFactory
public interface JaxbObjectWrapperFactoryA jaxb object wrapper factory which create a wrapper for given supported object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JaxbObjectWrappercreateWrapper(java.lang.Object o)Creates wrapper for given object.java.lang.Class<?>getWrapperClass()Returns runtime class of wrapper produced by this factory.booleansupports(java.lang.Class<?> clazz)Checks if class is supported by this factory
-
-
-
Method Detail
-
createWrapper
JaxbObjectWrapper createWrapper(java.lang.Object o)
Creates wrapper for given object. May throw runtime exception if object is not supported- Parameters:
o- object to wrap- Returns:
- wrapped object
-
getWrapperClass
java.lang.Class<?> getWrapperClass()
Returns runtime class of wrapper produced by this factory.- Returns:
- class of wrapper produced by this factory.
-
supports
boolean supports(java.lang.Class<?> clazz)
Checks if class is supported by this factory- Parameters:
clazz- class for check- Returns:
- true if class is supported
-
-