All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.bjuvensjo.rsimulator.aop.AopAllianceSimulator Maven / Gradle / Ivy

There is a newer version: 3.1.1
Show newest version
package com.github.bjuvensjo.rsimulator.aop;

import org.aopalliance.aop.Advice;
import org.aopalliance.intercept.MethodInterceptor;

import com.google.inject.ImplementedBy;

/**
 * The AopAllianceSimulator is used to simulate java interface method invocations by means of method interception. No
 * interface implementation is needed, since the interface implementation is provided by the AopAllianceSimulator
 * together with simulation test data.
 * 
 * @author Magnus Bjuvensjö
 */
@ImplementedBy(AopAllianceSimulatorImpl.class)
public interface AopAllianceSimulator extends Advice, MethodInterceptor {

    /**
     * Sets the rootPath to the folder of the specified testClass class file folder.
     * 
     * @param testClass the testClass
     */
    void setRootPath(Class testClass);

    /**
     * Sets the rootPath to the specified aRootPath.
     * 
     * @param aRootPath the rootPath
     */
    void setRootPath(String aRootPath);

    /**
     * Sets if a root relative path should be used. If true, the relative path is constructed by the package name of the
     * intercepted class.
     * 
     * @param aUseRootRelativePath the useRelativeRootPath
     */
    void setUseRootRelativePath(boolean aUseRootRelativePath);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy