Package net.jsunit.interceptor

Source Code of net.jsunit.interceptor.AggregateServerInterceptor

package net.jsunit.interceptor;

import com.opensymphony.xwork.Action;
import net.jsunit.JsUnitAggregateServer;
import net.jsunit.action.JsUnitAggregateServerAware;

public class AggregateServerInterceptor extends JsUnitInterceptor {

    protected void execute(Action targetAction) throws Exception {
        if (targetAction instanceof JsUnitAggregateServerAware) {
            JsUnitAggregateServerAware action = (JsUnitAggregateServerAware) targetAction;
            action.setAggregateServer(JsUnitAggregateServer.instance());
        }
    }

}
TOP

Related Classes of net.jsunit.interceptor.AggregateServerInterceptor

TOP
Copyright © 2018 www.massapi.com. 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.