
com.atlassian.clover.instr.aspectj.CloverAjBuildManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clover-aspectj-compiler Show documentation
Show all versions of clover-aspectj-compiler Show documentation
A wrapper for AspectJ compiler which allows code instrumentation using OpenClover.
The newest version!
package com.atlassian.clover.instr.aspectj;
import com.atlassian.clover.api.instrumentation.InstrumentationSession;
import org.aspectj.ajdt.internal.compiler.ICompilerAdapter;
import org.aspectj.ajdt.internal.core.builder.AjBuildManager;
import org.aspectj.bridge.IMessageHandler;
/**
*
*/
public class CloverAjBuildManager extends AjBuildManager {
private final InstrumentationSession session;
private final AjInstrumentationConfig config;
public CloverAjBuildManager(IMessageHandler holder, InstrumentationSession session, AjInstrumentationConfig config) {
super(holder);
this.session = session;
this.config = config;
}
@Override
public ICompilerAdapter getAdapter(org.aspectj.org.eclipse.jdt.internal.compiler.Compiler forCompiler) {
return new CloverAjCompilerAdapter(super.getAdapter(forCompiler), session, config, forCompiler.lookupEnvironment);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy