org.omnaest.utils.xml
Class JAXBXMLHelper.UnmarshallingConfiguration.Configurator

java.lang.Object
  extended by org.omnaest.utils.xml.JAXBXMLHelper.UnmarshallingConfiguration.Configurator
Enclosing class:
JAXBXMLHelper.UnmarshallingConfiguration

public abstract static class JAXBXMLHelper.UnmarshallingConfiguration.Configurator
extends Object

A JAXBXMLHelper.UnmarshallingConfiguration.Configurator is able to configure several internal instances like SAXParserFactory, JAXBContext, Unmarshaller.

To do this override any method available.

Example:

 new Configurator()
 {
   @Override
   public void configure( SAXParserFactory saxParserFactory ) throws Exception
   {
     saxParserFactory.setFeature( XMLConstants.FEATURE_SECURE_PROCESSING, true );
   }
 }
 

Author:
Omnaest

Constructor Summary
JAXBXMLHelper.UnmarshallingConfiguration.Configurator()
           
 
Method Summary
 void configure(JAXBContext jaxbContext)
          Configures the JAXBContext
 void configure(SAXParserFactory saxParserFactory)
          Configures the given SAXParserFactory instance
 void configure(Unmarshaller unmarshaller)
          Configures the Unmarshaller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBXMLHelper.UnmarshallingConfiguration.Configurator

public JAXBXMLHelper.UnmarshallingConfiguration.Configurator()
Method Detail

configure

public void configure(SAXParserFactory saxParserFactory)
               throws Exception
Configures the given SAXParserFactory instance

Parameters:
saxParserFactory -
Throws:
Exception

configure

public void configure(Unmarshaller unmarshaller)
               throws Exception
Configures the Unmarshaller

Parameters:
unmarshaller -
Throws:
Exception

configure

public void configure(JAXBContext jaxbContext)
               throws Exception
Configures the JAXBContext

Parameters:
jaxbContext -
Throws:
Exception


Copyright © 2013. All Rights Reserved.