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

aQute.bnd.service.CommandPlugin Maven / Gradle / Ivy

Go to download

The bndlib project is a general library to be used with OSGi bundles. It contains lots of cool functionality that calculates dependencies, etc.

There is a newer version: 2.4.0
Show newest version
package aQute.bnd.service;

import aQute.bnd.build.*;

/**
 * A plugin that makes it possible to
 * 
 * @author aqute
 */
public interface CommandPlugin {
	/**
	 * Is run before a command is executed. These plugins are called in the
	 * order of declaration.
	 * 
	 * @param project
	 *            The project for which the command runs
	 * @param command
	 *            the command name
	 */
	void before(Project project, String command);

	/**
	 * Is run after a command is executed. These plugins are called in the
	 * reverse order of declaration.
	 * 
	 * @param project
	 *            The project for which the command runs
	 * @param command
	 *            the command name
	 */
	void after(Project project, String command, Throwable outcome);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy