1 22 23 package org.jboss.web.jsf.integration.serialization; 24 25 import com.sun.faces.spi.SerializationProvider; 26 import java.io.IOException ; 27 import java.io.InputStream ; 28 import java.io.ObjectInputStream ; 29 import java.io.ObjectOutputStream ; 30 import java.io.OutputStream ; 31 import org.jboss.logging.Logger; 32 import org.jboss.serial.io.JBossObjectOutputStream; 33 34 40 public class JBossSerializationProvider implements SerializationProvider 41 { 42 private static final Logger LOG = Logger.getLogger(JBossSerializationProvider.class); 43 44 47 public JBossSerializationProvider() 48 { 49 LOG.info("Using JBoss Serialization for JavaServer Faces."); 50 } 51 52 55 public ObjectInputStream createObjectInputStream(InputStream source) throws IOException { 56 return new JBossFacesObjectInputStream(source); 57 } 58 59 62 public ObjectOutputStream createObjectOutputStream(OutputStream destination) throws IOException 63 { 64 return new JBossObjectOutputStream(destination); 65 } 66 67 } 68 | Popular Tags |