Class PropertiesBasedConfigurationBuilder

java.lang.Object
org.eclipse.microprofile.telemetry.tracing.tck.porting.PropertiesBasedConfigurationBuilder

public class PropertiesBasedConfigurationBuilder extends Object
  • Field Details

  • Constructor Details

    • PropertiesBasedConfigurationBuilder

      public PropertiesBasedConfigurationBuilder()
  • Method Details

    • build

      public Configuration build(boolean deploymentPhase)
    • getClassValue

      protected <T> Class<T> getClassValue(String propertyName, Class<T> expectedType, boolean required)
      Type Parameters:
      T -
      Parameters:
      propertyName -
      expectedType -
      required -
      Returns:
    • getInstanceValue

      protected <T> T getInstanceValue(String propertyName, Class<T> expectedType, boolean required)
      Type Parameters:
      T -
      Parameters:
      propertyName -
      expectedType -
      required -
      Returns:
    • getPropertyValues

      public Set<String> getPropertyValues(String key)
      Get a list of possible values for a given key. First, System properties are tried, followed by the specified resource bundle (first in classpath only).
      Parameters:
      key - The key to search for
      Returns:
      A list of possible values. An empty list is returned if there are no matches.
    • getResources

      public Enumeration<URL> getResources(String name) throws IOException
      Parameters:
      name -
      Returns:
      Throws:
      IOException