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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final 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
    setConfig(T configuration)
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfigurationSupportingVerticle

      public ConfigurationSupportingVerticle()
  • Method Details

    • setConfig

      public final void setConfig(T configuration)
      Sets the properties to use for configuring this Verticle.
      Parameters:
      configuration - The configuration properties.
      Throws:
      NullPointerException - if configuration is null.
    • getConfig

      public final T 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).