public interface BlockHoundIntegration extends java.lang.Comparable<BlockHoundIntegration>
applyTo(BlockHound.Builder)
will receive an instance
of the builder that is being installed.
One can override Comparable.compareTo(Object)
to ensure the order in case
one needs to run an integration before or after another.Modifier and Type | Method and Description |
---|---|
void |
applyTo(BlockHound.Builder builder)
Lets an integration apply the customizations (see
BlockHound.Builder )
before BlockHound is installed. |
default int |
compareTo(BlockHoundIntegration o) |
default int |
getPriority()
Returns the default priority level for this integration.
|
void applyTo(BlockHound.Builder builder)
BlockHound.Builder
)
before BlockHound is installed.builder
- an instance of BlockHound.Builder
that is being installeddefault int getPriority()
BlockHoundIntegration
plugins.
Plugins which do not provide a priority are sorted using natural ordering, and
their applyTo(BlockHound.Builder)
method will be called using the order
in which the plugins are loaded.BlockHoundIntegration
plugin priority, 0 by default.compareTo(BlockHoundIntegration)
default int compareTo(BlockHoundIntegration o)
compareTo
in interface java.lang.Comparable<BlockHoundIntegration>