public abstract class AbstractComponent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected DeprecationLogger |
deprecationLogger |
protected org.apache.logging.log4j.Logger |
logger |
protected Settings |
settings |
Constructor and Description |
---|
AbstractComponent(Settings settings) |
AbstractComponent(Settings settings,
java.lang.Class customClass) |
Modifier and Type | Method and Description |
---|---|
protected void |
logDeprecatedSetting(java.lang.String settingName,
java.lang.String alternativeName)
Checks for a deprecated setting and logs the correct alternative
|
protected void |
logRemovedSetting(java.lang.String settingName,
java.lang.String alternativeName)
Checks for a removed setting and logs the correct alternative
|
java.lang.String |
nodeName()
Returns the nodes name from the settings or the empty string if not set.
|
protected final org.apache.logging.log4j.Logger logger
protected final DeprecationLogger deprecationLogger
protected final Settings settings
public AbstractComponent(Settings settings)
public AbstractComponent(Settings settings, java.lang.Class customClass)
public final java.lang.String nodeName()
protected void logDeprecatedSetting(java.lang.String settingName, java.lang.String alternativeName)
protected void logRemovedSetting(java.lang.String settingName, java.lang.String alternativeName)