1
1
/*
2
- * Copyright 2002-2020 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
30
30
public interface PropertyResolver {
31
31
32
32
/**
33
- * Return whether the given property key is available for resolution,
34
- * i.e. if the value for the given key is not {@code null}.
33
+ * Determine whether the given property key is available for resolution
34
+ * — for example, if the value for the given key is not {@code null}.
35
35
*/
36
36
boolean containsProperty (String key );
37
37
38
38
/**
39
- * Return the property value associated with the given key,
39
+ * Resolve the property value associated with the given key,
40
40
* or {@code null} if the key cannot be resolved.
41
41
* @param key the property name to resolve
42
42
* @see #getProperty(String, String)
@@ -47,7 +47,7 @@ public interface PropertyResolver {
47
47
String getProperty (String key );
48
48
49
49
/**
50
- * Return the property value associated with the given key, or
50
+ * Resolve the property value associated with the given key, or
51
51
* {@code defaultValue} if the key cannot be resolved.
52
52
* @param key the property name to resolve
53
53
* @param defaultValue the default value to return if no value is found
@@ -57,7 +57,7 @@ public interface PropertyResolver {
57
57
String getProperty (String key , String defaultValue );
58
58
59
59
/**
60
- * Return the property value associated with the given key,
60
+ * Resolve the property value associated with the given key,
61
61
* or {@code null} if the key cannot be resolved.
62
62
* @param key the property name to resolve
63
63
* @param targetType the expected type of the property value
@@ -67,7 +67,7 @@ public interface PropertyResolver {
67
67
<T > T getProperty (String key , Class <T > targetType );
68
68
69
69
/**
70
- * Return the property value associated with the given key,
70
+ * Resolve the property value associated with the given key,
71
71
* or {@code defaultValue} if the key cannot be resolved.
72
72
* @param key the property name to resolve
73
73
* @param targetType the expected type of the property value
@@ -77,14 +77,14 @@ public interface PropertyResolver {
77
77
<T > T getProperty (String key , Class <T > targetType , T defaultValue );
78
78
79
79
/**
80
- * Return the property value associated with the given key (never {@code null}).
80
+ * Resolve the property value associated with the given key (never {@code null}).
81
81
* @throws IllegalStateException if the key cannot be resolved
82
82
* @see #getRequiredProperty(String, Class)
83
83
*/
84
84
String getRequiredProperty (String key ) throws IllegalStateException ;
85
85
86
86
/**
87
- * Return the property value associated with the given key, converted to the given
87
+ * Resolve the property value associated with the given key, converted to the given
88
88
* targetType (never {@code null}).
89
89
* @throws IllegalStateException if the given key cannot be resolved
90
90
*/
0 commit comments