Package io.dapr.config
Class Property<T>
- java.lang.Object
-
- io.dapr.config.Property<T>
-
- Direct Known Subclasses:
BooleanProperty,GenericProperty,IntegerProperty,StringProperty
public abstract class Property<T> extends Object
A configuration property in the Dapr's SDK.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tget()Gets the value defined by system property first, then env variable or sticks to default.StringgetEnvName()Gets the environment variable's name.StringgetName()Gets the Java property's name.protected abstract Tparse(String value)Parses the value to the specific type.
-
-
-
Method Detail
-
getName
public String getName()
Gets the Java property's name.- Returns:
- Name.
-
getEnvName
public String getEnvName()
Gets the environment variable's name.- Returns:
- Name.
-
get
public T get()
Gets the value defined by system property first, then env variable or sticks to default.- Returns:
- Value from system property (1st) or env variable (2nd) or default (last).
-
-