org.apache.webbeans.web.failover
Interface SerializationHandlerV10


public interface SerializationHandlerV10

Application could implement this interface and register with failover service to handle serialization/deserialization of resource beans. Failover serivce will invoke this handleResource Method then.


Field Summary
static int TYPE_FAILOVER
          failover case.
static int TYPE_PASSIVATION
          passivation case.
 
Method Summary
 Object handleResource(javax.enterprise.inject.spi.Bean<?> bean, Object resourceObject, ObjectInput in, ObjectOutput out, int type)
          Application provided custom handler for serialize and deserialize resource beans.
 

Field Detail

TYPE_FAILOVER

static final int TYPE_FAILOVER
failover case.

See Also:
Constant Field Values

TYPE_PASSIVATION

static final int TYPE_PASSIVATION
passivation case.

See Also:
Constant Field Values
Method Detail

handleResource

Object handleResource(javax.enterprise.inject.spi.Bean<?> bean,
                      Object resourceObject,
                      ObjectInput in,
                      ObjectOutput out,
                      int type)
Application provided custom handler for serialize and deserialize resource beans.

Parameters:
bean - The resource bean.
resourceObject - The resource bean instance
in - The input object stream
out - The output object stream
type - TYPE_FAILOVER or TYPE_PASSIVATION
Returns:
NOT_HANDLED if not handled by handler.


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