public interface ToolchainSupplier
extends org.pf4j.ExtensionPoint
ExtensionPoint
which provides a way to register an arbitrary set of ToolchainDescriptor
s.
Clients that want to provide descriptions need to implement this interface and annotation that
class with Extension
annotation.
For example:
@Extension public class LanguageToolchainsSupplier implements ToolchainSupplier { @Override public Collection<ToolchainDescriptor<?>> getToolchainDescriptor() { return Arrays.asList( new LanguageToolchainDescriptor() ); } }Then the target with the client provider should be added to the dependencies of
//src/com/facebook/buck/cli:main
target.Modifier and Type | Method and Description |
---|---|
Collection<ToolchainDescriptor<?>> |
getToolchainDescriptor() |
Collection<ToolchainDescriptor<?>> getToolchainDescriptor()