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

aQute.bnd.build.ReflectAction 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.build;

import java.lang.reflect.*;

import aQute.bnd.service.action.*;

public class ReflectAction implements Action {
	String	what;

	public ReflectAction(String what) {
		this.what = what;
	}

	public void execute(Project project, String action) throws Exception {
		Method m = project.getClass().getMethod(what);
		m.invoke(project);
	}

	@Override
	public String toString() {
		return "ra:" + what;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy