Package org.eclipse.hono.util
Class ConfigurationSupportingVerticle<T>
java.lang.Object
io.vertx.core.AbstractVerticle
org.eclipse.hono.util.ConfigurationSupportingVerticle<T>
- Type Parameters:
T
- The type of configuration properties this verticle supports.
- All Implemented Interfaces:
io.vertx.core.Verticle
public abstract class ConfigurationSupportingVerticle<T>
extends io.vertx.core.AbstractVerticle
A base class for implementing Verticles.
This class provides support for accessing configuration properties.
-
Field Summary
Fields inherited from class io.vertx.core.AbstractVerticle
context, vertx
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal T
Gets the properties that this Verticle has been configured with.protected final io.vertx.core.Context
Gets the vert.x context that this verticle is associated with.final void
Sets the properties to use for configuring this Verticle.Methods inherited from class io.vertx.core.AbstractVerticle
config, deploymentID, getVertx, init, processArgs, start, start, stop, stop
-
Constructor Details
-
ConfigurationSupportingVerticle
public ConfigurationSupportingVerticle()
-
-
Method Details
-
setConfig
Sets the properties to use for configuring this Verticle.- Parameters:
configuration
- The configuration properties.- Throws:
NullPointerException
- if configuration isnull
.
-
getConfig
Gets the properties that this Verticle has been configured with.- Returns:
- The properties or
null
if not set.
-
getContext
protected final io.vertx.core.Context getContext()Gets the vert.x context that this verticle is associated with.- Returns:
- The context or
null
if this verticle has not been deployed (yet).
-