Class ModuleBuilder<B extends ModuleBuilder<B,T>,T extends Module>

java.lang.Object
org.openhab.core.automation.util.ModuleBuilder<B,T>
Direct Known Subclasses:
ActionBuilder, ConditionBuilder, TriggerBuilder

@NonNullByDefault public abstract class ModuleBuilder<B extends ModuleBuilder<B,T>,T extends Module> extends Object
This class allows the easy construction of a Module instance using the builder pattern.
Author:
Kai Kreuzer - Initial contribution, Markus Rathgeb - Split implementation for different module types in sub classes
  • Field Details

    • configuration

      protected @Nullable Configuration configuration
    • label

      protected @Nullable String label
    • description

      protected @Nullable String description
  • Constructor Details

    • ModuleBuilder

      protected ModuleBuilder()
    • ModuleBuilder

      protected ModuleBuilder(T module)
  • Method Details