public interface DescriptionProvider
extends org.pf4j.ExtensionPoint
ExtensionPoint
which provides a way to register an arbitrary set of Description
s.
Clients that want to provide descriptions need to implement this interface and annotation that
class with Extension
annotation.
For example:
@Extension public class LanguageDescriptionProvider implements DescriptionProvider { @Override public Collection<<Description<?>> getDescriptions() { return Arrays.asList( new LanguageRuleDescription() ); } }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<Description<?>> |
getDescriptions(DescriptionCreationContext context) |
Collection<Description<?>> getDescriptions(DescriptionCreationContext context)