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.
 Object getPayload()
          Returns the payload attached to the resource.
 XAResource getXAResource()
           
 void setPayload(Object payload)
          Attach a payload to the resource.
 

Method Detail

getXAResource

XAResource getXAResource()
Returns:
XAResource

enlistResource

void enlistResource()
                    throws XAException
Enlists XAResource in TM.

Throws:
XAException

delistResource

void delistResource()
                    throws XAException
Delists XAResource in TM.

Throws:
XAException

getPayload

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

Returns:
the payload

setPayload

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

Parameters:
payload - the payload


Copyright © 2009 eXo Platform SAS. All Rights Reserved.