java.lang.Object
ch.raffael.meldioc.library.base.jmx.registry.util.DomainMappings

public abstract class DomainMappings extends Object
Configurable mapper to determine domain names from classes. Usually, the class of the managed object should be used.
  • Method Details

    • builder

      public static DomainMappings.Builder builder()
    • of

      public static DomainMappings of(String defaultDomain)
    • defaultDomain

      @Parameter public abstract String defaultDomain()
    • mappings

      public abstract io.vavr.collection.Map<String,String> mappings()
    • addMapping

      public DomainMappings addMapping(String baseName, String domain)
    • domainFor

      public String domainFor(String baseName)
    • domainFor

      public String domainFor(Class<?> type)
    • withDefaultDomain

      DomainMappings withDefaultDomain(String value)
      Copy the current immutable object by setting a value for the defaultDomain attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for defaultDomain
      Returns:
      A modified copy of the this object
    • withMappings

      DomainMappings withMappings(io.vavr.collection.Map<String,String> value)
      Copy the current immutable object by setting a value for the mappings attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for mappings
      Returns:
      A modified copy of the this object