Declares that a custom BinarySpec type. The following example demonstrates how to register a custom component type using a plugin with a BinaryType annotation.
interface SampleBinary extends BinarySpec {}
class DefaultSampleBinary extends BaseBinarySpec implements SampleBinary {}
apply plugin: MySamplePlugin
class MySamplePlugin extends RuleSource {
@BinaryType
void defineBinaryType(BinaryTypeBuilder<SampleBinary> builder) {
builder.defaultImplementation(DefaultSampleBinary)
}
}