org.apache.webbeans.web.failover
Class FailOverBagWrapper

java.lang.Object
  extended by org.apache.webbeans.web.failover.FailOverBagWrapper
All Implemented Interfaces:
Externalizable, Serializable, EventListener, javax.servlet.http.HttpSessionActivationListener

public class FailOverBagWrapper
extends Object
implements Serializable, Externalizable, javax.servlet.http.HttpSessionActivationListener

Use javassist Proxy streams to serialize and restore failover bean bag.

See Also:
Serialized Form

Field Summary
protected  FailOverBag bag
           
protected  boolean isSessionInUse
           
protected  WebBeansLogger logger
          Logger instance
protected  String sessionId
           
 
Constructor Summary
FailOverBagWrapper()
           
FailOverBagWrapper(javax.servlet.http.HttpSession session, FailOverService service)
           
 
Method Summary
 void readExternal(ObjectInput in)
           
 void restore()
           
 void sessionDidActivate(javax.servlet.http.HttpSessionEvent event)
           
 void sessionIsInUse()
           
 void sessionWillPassivate(javax.servlet.http.HttpSessionEvent event)
           
 void updateOwbFailOverBag(javax.servlet.http.HttpSession session, FailOverService service)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final WebBeansLogger logger
Logger instance


bag

protected FailOverBag bag

sessionId

protected String sessionId

isSessionInUse

protected boolean isSessionInUse
Constructor Detail

FailOverBagWrapper

public FailOverBagWrapper()

FailOverBagWrapper

public FailOverBagWrapper(javax.servlet.http.HttpSession session,
                          FailOverService service)
Method Detail

updateOwbFailOverBag

public void updateOwbFailOverBag(javax.servlet.http.HttpSession session,
                                 FailOverService service)

restore

public void restore()

sessionIsInUse

public void sessionIsInUse()

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

sessionWillPassivate

public void sessionWillPassivate(javax.servlet.http.HttpSessionEvent event)
Specified by:
sessionWillPassivate in interface javax.servlet.http.HttpSessionActivationListener

sessionDidActivate

public void sessionDidActivate(javax.servlet.http.HttpSessionEvent event)
Specified by:
sessionDidActivate in interface javax.servlet.http.HttpSessionActivationListener


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.