com.googlecode.jpattern.core.commandfacade
Class ACommandFacade<E>

java.lang.Object
  extended by com.googlecode.jpattern.core.commandfacade.ACommandFacade<E>
All Implemented Interfaces:
java.io.Serializable

public abstract class ACommandFacade<E>
extends java.lang.Object
implements java.io.Serializable

Author:
Francesco Cina' 25 Feb 2011 This class is used as a entry point for the execution of a chain of commands. A transaction management mechanism is implemented. If not differently specified, the default ATransactionManager defined in the TransactionService will be used.
See Also:
Serialized Form

Constructor Summary
ACommandFacade()
           
ACommandFacade(IProvider provider)
           
 
Method Summary
protected  void accept(ICommand aCommand)
           
 ICommandFacadeResult<E> exec()
           
protected abstract  ICommandFacadeResult<E> execute()
           
protected  ILogger getLogger()
           
protected  ATransactionManager getTransactionManager()
           
 void setTransactionManager(ATransactionManager transactionManager)
           
 void setTransactionManager(java.lang.String transactionManagerName, boolean readOnly)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACommandFacade

public ACommandFacade()

ACommandFacade

public ACommandFacade(IProvider provider)
Method Detail

setTransactionManager

public final void setTransactionManager(java.lang.String transactionManagerName,
                                        boolean readOnly)

setTransactionManager

public final void setTransactionManager(ATransactionManager transactionManager)

accept

protected final void accept(ICommand aCommand)

exec

public final ICommandFacadeResult<E> exec()

execute

protected abstract ICommandFacadeResult<E> execute()

getLogger

protected final ILogger getLogger()

getTransactionManager

protected final ATransactionManager getTransactionManager()


Copyright © 2011. All Rights Reserved.