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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.jboss.marshalling.MarshallingConfiguration config  
      private org.jboss.marshalling.MarshallerFactory factory  
      private java.lang.ThreadLocal<org.jboss.marshalling.Unmarshaller> unmarshallers  
    • Field Detail

      • unmarshallers

        private final java.lang.ThreadLocal<org.jboss.marshalling.Unmarshaller> unmarshallers
      • factory

        private final org.jboss.marshalling.MarshallerFactory factory
      • config

        private final org.jboss.marshalling.MarshallingConfiguration config
    • 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