Class ThreadLocalUnmarshallerProvider

  • All Implemented Interfaces:
    UnmarshallerProvider

    public class ThreadLocalUnmarshallerProvider
    extends java.lang.Object
    implements UnmarshallerProvider
    UnmarshallerProvider implementation which use a ThreadLocal to store references to Unmarshaller instances. This may give you some performance boost if you need to unmarshall many small Object's.
    • Constructor Detail

      • ThreadLocalUnmarshallerProvider

        public ThreadLocalUnmarshallerProvider​(org.jboss.marshalling.MarshallerFactory factory,
                                               org.jboss.marshalling.MarshallingConfiguration config)
        Create a new instance of the ThreadLocalUnmarshallerProvider
        Parameters:
        factory - the MarshallerFactory to use to create Unmarshaller's if needed
        config - the MarshallingConfiguration to use