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 Object
implements DefaultPropertyPlaceholderResolver.Segment
A segment that represents static text.
- Since:
- 1.1.0
- Author:
- James Kleeh
-
Method Summary
-
Method Details
-
getValue
Description copied from interface:DefaultPropertyPlaceholderResolver.SegmentReturns the value of a given segment converted to the provided type.- Specified by:
getValuein 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
-
findValue
Description copied from interface:DefaultPropertyPlaceholderResolver.SegmentReturns the optional value of a given segment converted to the provided type. Any conversions errors are ignored.- Specified by:
findValuein interfaceDefaultPropertyPlaceholderResolver.Segment- Type Parameters:
T- The type to convert the value to- Parameters:
type- The class- Returns:
- The converted optional value
-