Class PropertiesBasedConfigurationBuilder
java.lang.Object
org.eclipse.microprofile.telemetry.tracing.tck.porting.PropertiesBasedConfigurationBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(boolean deploymentPhase) protected <T> Class<T>getClassValue(String propertyName, Class<T> expectedType, boolean required) protected <T> TgetInstanceValue(String propertyName, Class<T> expectedType, boolean required) getPropertyValues(String key) Get a list of possible values for a given key.getResources(String name)
-
Field Details
-
RESOURCE_BUNDLE
- See Also:
-
-
Constructor Details
-
PropertiesBasedConfigurationBuilder
public PropertiesBasedConfigurationBuilder()
-
-
Method Details
-
build
-
getClassValue
- Type Parameters:
T-- Parameters:
propertyName-expectedType-required-- Returns:
-
getInstanceValue
- Type Parameters:
T-- Parameters:
propertyName-expectedType-required-- Returns:
-
getPropertyValues
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
- Parameters:
name-- Returns:
- Throws:
IOException
-