Package aQute.bnd.build
Class WorkspaceExternalPluginHandler
java.lang.Object
aQute.bnd.build.WorkspaceExternalPluginHandler
- All Implemented Interfaces:
AutoCloseable
-
Method Summary
Modifier and TypeMethodDescription<T,
R> aQute.bnd.result.Result <R> call
(String pluginName, Class<T> c, aQute.bnd.exceptions.FunctionWithException<T, aQute.bnd.result.Result<R>> f) aQute.bnd.result.Result
<Integer> call
(String mainClass, org.osgi.framework.VersionRange range, Processor context, Map<String, String> attrs, List<String> args, InputStream stdin, OutputStream stdout, OutputStream stderr) void
close()
<T> aQute.bnd.result.Result
<List<T>> getImplementations
(Class<T> interf, Attrs attrs) Returns list of external plugin proxies that implement the given interface.
-
Method Details
-
call
-
call
public aQute.bnd.result.Result<Integer> call(String mainClass, org.osgi.framework.VersionRange range, Processor context, Map<String, String> attrs, List<String> args, InputStream stdin, OutputStream stdout, OutputStream stderr) -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getImplementations
Returns list of external plugin proxies that implement the given interface. The proxies will load the actual plugin on demand when used. That is, the plugins will be quite cheap unless used.- Parameters:
interf
- the interface listed in `-plugin`.attrs
- the attributes from the that interface, the name specifies the name of the plugin, wildcards allowed- Returns:
- a list of plugins loaded from the external plugin set
-