Package org.springmodules.prevayler.system

Examples of org.springmodules.prevayler.system.PrevalentSystem


        }
    }
   
    public Object execute(SystemCallback callback) {
        logger.debug("Executing callback into prevalent system.");
        PrevalentSystem localSystem = (PrevalentSystem) this.configuration.getPrevaylerInstance().prevalentSystem();
        return localSystem.execute(callback);
    }
View Full Code Here


    public CompositeTransactionCommand(List callbacks) {
        this.callbacks = callbacks;
    }
   
    public void executeOn(Object object, Date date) {
        PrevalentSystem system= (PrevalentSystem) object;
        Iterator it = this.callbacks.iterator();
        while (it.hasNext()) {
            PrevaylerCallback callback = (PrevaylerCallback) it.next();
            callback.doInTransaction(system);
        }
View Full Code Here

    public TransactionCommand(PrevaylerCallback callback) {
        this.callback = callback;
    }
   
    public Object executeAndQuery(Object object, Date date) throws Exception {
        PrevalentSystem system= (PrevalentSystem) object;
        return callback.doInTransaction(system);
    }
View Full Code Here

TOP

Related Classes of org.springmodules.prevayler.system.PrevalentSystem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.