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 Details

    • createWrapper

      JaxbObjectWrapper createWrapper(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

      Class<?> getWrapperClass()
      Returns runtime class of wrapper produced by this factory.
      Returns:
      class of wrapper produced by this factory.
    • supports

      boolean supports(Class<?> clazz)
      Checks if class is supported by this factory
      Parameters:
      clazz - class for check
      Returns:
      true if class is supported