public interface MaskingComponent extends PluginComponent, JsonConfigurable
. A Json configurable plugin component
. Automatic default instance creation
. The ability to prohibit additional instances from being created
This interface is only used for masking algorithms. It allows a zero-configuration mapplet like experience when a plugin is installed. Embedded instance definitions have proven to add significant implementation complexity, so this interface should not be used for future types of extensibility.
| Modifier and Type | Field and Description |
|---|---|
static char |
IDENTIFIER_SCOPING_SEPARATOR
The separator used to create fully scoped names of components, as pluginName + separator +
componentName.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
getAllowFurtherInstances()
Returns true if additional instances of this component may be created beyond those enumerated
by
getDefaultInstances(). |
default java.util.Collection<MaskingComponent> |
getDefaultInstances()
Return a collection of objects that describe the default set of instances that should be
created for this component at plugin installation time.
|
default void |
setup(ComponentService serviceProvider)
Prepare this object for use.
|
default void |
tearDown()
Relinquish any resources this algorithm has acquired during its operation.
|
getDescription, getDocumentation, getNamevalidatestatic final char IDENTIFIER_SCOPING_SEPARATOR
default java.util.Collection<MaskingComponent> getDefaultInstances()
getAllowFurtherInstances() returns true.default boolean getAllowFurtherInstances()
getDefaultInstances(). Components for which this method returns true and that
implement a MaskingAlgorithm interface are treated as Algorithm Frameworks by the masking
engine.default void setup(@Nonnull
ComponentService serviceProvider)
serviceProvider - The service provider objectdefault void tearDown()