@Beta public abstract class PluginConfig extends Config implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
PluginConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsMacro(String fieldName)
Returns true if property value contains a macro; false otherwise.
|
PluginProperties |
getProperties()
Returns the
PluginProperties . |
PluginProperties |
getRawProperties()
Contains the
PluginProperties as they were before macro evaluation. |
public final PluginProperties getProperties()
PluginProperties
.
All plugin properties that are macro-enabled and were configured with macro syntax present will be substituted
with Java's default values based on the property's type at configuration time. The default values are:
- boolean: false
- byte: 0
- char: ' '
- double: 0.0d
- float: 0.0f
- int: 0
- long: 0L
- short: 0
- String: nullpublic final PluginProperties getRawProperties()
PluginProperties
as they were before macro evaluation. For example, at configure time, if the
'schema' property is a macro '${schema}', the value will be the raw string '${schema}' instead of null. This is
primarily useful when one plugin is passing macro enabled properties to another plugin.public boolean containsMacro(String fieldName)
fieldName
- name of the fieldCopyright © 2020 Cask Data, Inc. Licensed under the Apache License, Version 2.0.