Class MoxyJaxbContextFactoryImpl

java.lang.Object
de.hybris.platform.webservicescommons.jaxb.MoxyJaxbContextFactoryImpl
All Implemented Interfaces:
JaxbContextFactory

public class MoxyJaxbContextFactoryImpl extends Object implements JaxbContextFactory
MoxyJaxbContextFactoryImpl is a factory that creates JaxbContext using a Moxy implementation of JAXB. The context is created for a given set of classes. The factory finally adds to this context also some global classes (provided in otherClasses list).
  • Constructor Details

    • MoxyJaxbContextFactoryImpl

      public MoxyJaxbContextFactoryImpl()
  • Method Details

    • createJaxbContext

      public javax.xml.bind.JAXBContext createJaxbContext(Class... classes) throws javax.xml.bind.JAXBException
      Specified by:
      createJaxbContext in interface JaxbContextFactory
      Throws:
      javax.xml.bind.JAXBException
    • computeProperties

      protected Map<String,Object> computeProperties(Set<Class<?>> allClasses)
    • computeAllClasses

      protected Set<Class<?>> computeAllClasses(Class... classes)
    • computeDetailsForClass

      protected Set<Class<?>> computeDetailsForClass(Class clazz, int currentDepth)
    • computeOtherClasses

      protected Set<Class<?>> computeOtherClasses(Set<Class<?>> allClasses)
    • expandGenericSuperclasses

      protected Set<Class<?>> expandGenericSuperclasses(Set<Class<?>> allClasses)
    • excludeClasses

      protected Set<Class<?>> excludeClasses(Set<Class<?>> classes)
    • supports

      public boolean supports(Class<?> clazz)
      Specified by:
      supports in interface JaxbContextFactory
    • getAllSuperClasses

      protected static List<Class<?>> getAllSuperClasses(Class<?> clazz)
    • getInnerFields

      protected Set<Class<?>> getInnerFields(Class<?> clazz, int depth)
    • getClassesFromFields

      protected Set<Class<?>> getClassesFromFields(Class<?> itemClass, Set<Class<?>> visitedClasses)
    • getOtherClasses

      public List<Class<?>> getOtherClasses()
    • setOtherClasses

      public void setOtherClasses(List<Class<?>> otherClasses)
    • getTypeAdapters

      public List<Class<?>> getTypeAdapters()
    • setTypeAdapters

      public void setTypeAdapters(List<Class<?>> typeAdapters)
    • getWrapCollections

      public Boolean getWrapCollections()
    • setWrapCollections

      public void setWrapCollections(Boolean wrapCollections)
    • getAnalysisDepth

      public int getAnalysisDepth()
    • setAnalysisDepth

      public void setAnalysisDepth(int analysisDepth)
    • getExcludeClasses

      public List<Class<?>> getExcludeClasses()
    • setExcludeClasses

      public void setExcludeClasses(List<Class<?>> excludeClasses)
    • setMetadataSourceFactory

      public void setMetadataSourceFactory(MetadataSourceFactory metadataSourceFactory)
    • getSubclassRegistry

      public SubclassRegistry getSubclassRegistry()
    • setSubclassRegistry

      public void setSubclassRegistry(SubclassRegistry subclassRegistry)