org.exoplatform.services.transaction
Interface ExoResource


public interface ExoResource

Version:
$Revision$
Author:
Julien Viet

Method Summary
 void delistResource()
          Delists XAResource in TM.
 void enlistResource()
          Enlists XAResource in TM.
 java.lang.Object getPayload()
          Returns the payload attached to the resource.
 javax.transaction.xa.XAResource getXAResource()
           
 void setPayload(java.lang.Object payload)
          Attach a payload to the resource.
 

Method Detail

getXAResource

javax.transaction.xa.XAResource getXAResource()
Returns:
XAResource

enlistResource

void enlistResource()
                    throws javax.transaction.xa.XAException
Enlists XAResource in TM.

Throws:
javax.transaction.xa.XAException

delistResource

void delistResource()
                    throws javax.transaction.xa.XAException
Delists XAResource in TM.

Throws:
javax.transaction.xa.XAException

getPayload

java.lang.Object getPayload()
Returns the payload attached to the resource.

Returns:
the payload

setPayload

void setPayload(java.lang.Object payload)
Attach a payload to the resource.

Parameters:
payload - the payload


Copyright © 2010 eXo Platform SAS. All Rights Reserved.