Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.commons.marshall.jboss;
 
 import  org.jboss.marshalling.MarshallingConfiguration;
 import  org.jboss.marshalling.reflect.SerializableClassRegistry;
 import  org.jboss.marshalling.river.RiverMarshaller;
 import  org.jboss.marshalling.river.RiverMarshallerFactory;
 
RiverMarshaller extension that allows Infinispan code to directly create instances of it.

Author(s):
Galder ZamarreƱo
Since:
5.1
public class ExtendedRiverMarshaller extends RiverMarshaller {
   public ExtendedRiverMarshaller(RiverMarshallerFactory factory,
         SerializableClassRegistry registry, MarshallingConfiguration cfgthrows IOException {
      super(factoryregistrycfg);
   }
   @Override
   public void finish() throws IOException {
      super.finish();
      if ( != null) {
         .closeMarshaller();
      }
   }
   void setCloseListener(RiverCloseListener listener) {
      this. = listener;
   }
New to GrepCode? Check out our FAQ X