org.alfresco.repo.avm
Class CreateStoreTxnListener

java.lang.Object
  extended by org.alfresco.repo.transaction.TransactionListenerAdapter
      extended by org.alfresco.repo.avm.CreateStoreTxnListener
All Implemented Interfaces:
TransactionListener

public class CreateStoreTxnListener
extends TransactionListenerAdapter

Transaction listener for firing create store events.


Constructor Summary
CreateStoreTxnListener()
          Default constructor.
 
Method Summary
 void addCallback(CreateStoreCallback cb)
          Register a callback.
 void afterCommit()
          Invoked after transaction commit.
 void afterRollback()
          Invoked after transaction rollback.
 void storeCreated(java.lang.String storeName)
          During the transaction somebody is responsible for calling this.
 
Methods inherited from class org.alfresco.repo.transaction.TransactionListenerAdapter
beforeCommit, beforeCompletion, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateStoreTxnListener

public CreateStoreTxnListener()
Default constructor.

Method Detail

afterCommit

public void afterCommit()
Description copied from class: TransactionListenerAdapter
Invoked after transaction commit.

Any exceptions generated here will cause the transaction to rollback.

Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.

Specified by:
afterCommit in interface TransactionListener
Overrides:
afterCommit in class TransactionListenerAdapter

afterRollback

public void afterRollback()
Description copied from class: TransactionListenerAdapter
Invoked after transaction rollback.

Although all transaction resources are still available, this method should be used only for cleaning up resources after a rollback has occured.

Specified by:
afterRollback in interface TransactionListener
Overrides:
afterRollback in class TransactionListenerAdapter

storeCreated

public void storeCreated(java.lang.String storeName)
During the transaction somebody is responsible for calling this.

Parameters:
storeName - The name of the store that has been created.

addCallback

public void addCallback(CreateStoreCallback cb)
Register a callback.

Parameters:
cb - The callback.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.