Package io.micronaut.context.env
Interface DefaultPropertyPlaceholderResolver.Segment
-
- All Known Implementing Classes:
DefaultPropertyPlaceholderResolver.PlaceholderSegment,DefaultPropertyPlaceholderResolver.RawSegment
- Enclosing class:
- DefaultPropertyPlaceholderResolver
public static interface DefaultPropertyPlaceholderResolver.SegmentA segment of placeholder resolution.- Since:
- 1.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TgetValue(java.lang.Class<T> type)Returns the value of a given segment converted to the provided type.
-
-
-
Method Detail
-
getValue
<T> T getValue(java.lang.Class<T> type) throws ConfigurationExceptionReturns the value of a given segment converted to the provided type.- Type Parameters:
T- The type to convert the value to- Parameters:
type- The class- Returns:
- The converted value
- Throws:
ConfigurationException- If any error occurs
-
-