org.apache.abdera.protocol.server
Interface Transactional

All Known Implementing Classes:
org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter, org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter, AbstractMultipartCollectionAdapter, BasicAdapter, CouchDbAdapter, EmployeeCollectionAdapter, FilesystemAdapter, IBatisCollectionAdapter, JcrCollectionAdapter, ManagedCollectionAdapter, SimpleAdapter

public interface Transactional

CollectionAdapter implementations can implement the Transactional interface in order to support start/end/compensate behaviors. Providers will invoke the start/end methods before/after calling the appropriate CollectionAdapter methods and will call compensate if an error occurs


Method Summary
 void compensate(RequestContext request, Throwable t)
          Called by the provider when a processing error occurs
 void end(RequestContext request, ResponseContext response)
          Called by the provider after dispatching the request to the adapter
 void start(RequestContext request)
          Called by the provider before dispatching the request to the adapter
 

Method Detail

start

void start(RequestContext request)
           throws ResponseContextException
Called by the provider before dispatching the request to the adapter

Throws:
ResponseContextException

end

void end(RequestContext request,
         ResponseContext response)
Called by the provider after dispatching the request to the adapter


compensate

void compensate(RequestContext request,
                Throwable t)
Called by the provider when a processing error occurs



Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.