Helper class that allows execution of components from maven plugin class realms. Normally, these
components are not visible from tycho-core extensions plugin and require treatment. Typical usage
@Requirement
private EquinoxServiceFactory equinox;
@Requirement
private PluginRealmHelper pluginRealmHelper;
...
public void someMethod(final MavenSession session, final MavenProject project) throws MavenExecutionException {
pluginRealmHelper..execute(session, project, new Runnable() {
public void run() {
try {
equinox.lookup(SomeComponent.class).someComponentMethod();
} catch (ComponentLookupException e) {
// have not found anything
}
}
}, new PluginFilter() {
public boolean accept(PluginDescriptor descriptor) {
return true if the plugin is relevant;
}
});
}