org.jboss.web.tomcat.service.session.distributedcache.spi
Class SessionSerializationFactory

java.lang.Object
  extended by org.jboss.web.tomcat.service.session.distributedcache.spi.SessionSerializationFactory

public class SessionSerializationFactory
extends Object

Factory class for creating object output and input streams, switching between JDK Serialization and JBoss Serialization classes. Using MarshalledValue to replace Serializable used inside different web app class loader context. Assuming that the caller classes are already handling the switch between web app class loader context.

Author:
Hany Mesha, Brian Stansberry

Field Summary
static String JBOSS_SERIALIZATION_SYS_PROP
          System property that, if set to true, indicates that JBoss Serialization should be used for session serialization.
 
Constructor Summary
SessionSerializationFactory()
           
 
Method Summary
static org.jboss.ha.framework.server.SimpleCachableMarshalledValue createMarshalledValue(Serializable o)
           
static org.jboss.ha.framework.interfaces.ObjectStreamSource getObjectStreamSource()
           
static boolean useJBossSerialization()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JBOSS_SERIALIZATION_SYS_PROP

public static final String JBOSS_SERIALIZATION_SYS_PROP
System property that, if set to true, indicates that JBoss Serialization should be used for session serialization.

See Also:
Constant Field Values
Constructor Detail

SessionSerializationFactory

public SessionSerializationFactory()
Method Detail

createMarshalledValue

public static org.jboss.ha.framework.server.SimpleCachableMarshalledValue createMarshalledValue(Serializable o)

getObjectStreamSource

public static org.jboss.ha.framework.interfaces.ObjectStreamSource getObjectStreamSource()

useJBossSerialization

public static boolean useJBossSerialization()


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.