Package io.micronaut.context.env
Class DefaultPropertyPlaceholderResolver.RawSegment
- java.lang.Object
-
- io.micronaut.context.env.DefaultPropertyPlaceholderResolver.RawSegment
-
- All Implemented Interfaces:
DefaultPropertyPlaceholderResolver.Segment
- Enclosing class:
- DefaultPropertyPlaceholderResolver
public class DefaultPropertyPlaceholderResolver.RawSegment extends java.lang.Object implements DefaultPropertyPlaceholderResolver.Segment
A segment that represents static text.- Since:
- 1.1.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
getValue(java.lang.Class<T> type)
Returns the value of a given segment converted to the provided type.
-
-
-
Method Detail
-
getValue
public <T> T getValue(java.lang.Class<T> type) throws ConfigurationException
Description copied from interface:DefaultPropertyPlaceholderResolver.Segment
Returns the value of a given segment converted to the provided type.- Specified by:
getValue
in interfaceDefaultPropertyPlaceholderResolver.Segment
- Type Parameters:
T
- The type to convert the value to- Parameters:
type
- The class- Returns:
- The converted value
- Throws:
ConfigurationException
- If any error occurs
-
-