19
19
20
20
/**
21
21
* Receives configuration information, selects the appropriate
22
- * Bean Validation provider and builds the appropriate < code> ValidatorFactory</code> .
22
+ * Bean Validation provider and builds the appropriate {@ code ValidatorFactory} .
23
23
* <p/>
24
24
* Usage:
25
25
* <pre>
33
33
* By default, the configuration information is retrieved from
34
34
* <i>META-INF/validation.xml</i>.
35
35
* It is possible to override the configuration retrieved from the XML file
36
- * by using one or more of the < code> Configuration</code> methods.
36
+ * by using one or more of the {@ code Configuration} methods.
37
37
* <p/>
38
38
* The {@link ValidationProviderResolver} is specified at configuration time
39
39
* (see {@link javax.validation.spi.ValidationProvider}).
40
- * If none is explicitly requested, the default < code> ValidationProviderResolver</code> is used.
40
+ * If none is explicitly requested, the default {@ code ValidationProviderResolver} is used.
41
41
* <p/>
42
42
* The provider is selected in the following way:
43
43
* <ul>
44
44
* <li>if a specific provider is requested programmatically using
45
- * < code> Validation.byProvider(Class)</code> , find the first provider implementing
45
+ * {@ code Validation.byProvider(Class)} , find the first provider implementing
46
46
* the provider class requested and use it</li>
47
47
* <li>if a specific provider is requested in <i>META-INF/validation.xml</i>,
48
48
* find the first provider implementing the provider class requested and use it</li>
49
- * <li>otherwise, use the first provider returned by the < code> ValidationProviderResolver</code> </li>
49
+ * <li>otherwise, use the first provider returned by the {@ code ValidationProviderResolver} </li>
50
50
* </ul>
51
51
* <p/>
52
52
* Implementations are not meant to be thread-safe.
@@ -61,33 +61,33 @@ public interface Configuration<T extends Configuration<T>> {
61
61
* method is called.
62
62
* This method is typically useful for containers that parse
63
63
* <i>META-INF/validation.xml</i> themselves and pass the information
64
- * via the < code> Configuration</code> methods.
64
+ * via the {@ code Configuration} methods.
65
65
*
66
- * @return < code> this</code> following the chaining method pattern.
66
+ * @return {@ code this} following the chaining method pattern.
67
67
*/
68
68
T ignoreXmlConfiguration ();
69
69
70
70
/**
71
71
* Defines the message interpolator used. Has priority over the configuration
72
72
* based message interpolator.
73
- * If < code> null</code> is passed, the default message interpolator is used
73
+ * If {@ code null} is passed, the default message interpolator is used
74
74
* (defined in XML or the specification default).
75
75
*
76
76
* @param interpolator message interpolator implementation.
77
77
*
78
- * @return < code> this</code> following the chaining method pattern.
78
+ * @return {@ code this} following the chaining method pattern.
79
79
*/
80
80
T messageInterpolator (MessageInterpolator interpolator );
81
81
82
82
/**
83
83
* Defines the traversable resolver used. Has priority over the configuration
84
84
* based traversable resolver.
85
- * If < code> null</code> is passed, the default traversable resolver is used
85
+ * If {@ code null} is passed, the default traversable resolver is used
86
86
* (defined in XML or the specification default).
87
87
*
88
88
* @param resolver traversable resolver implementation.
89
89
*
90
- * @return < code> this</code> following the chaining method pattern.
90
+ * @return {@ code this} following the chaining method pattern.
91
91
*/
92
92
T traversableResolver (TraversableResolver resolver );
93
93
@@ -99,7 +99,7 @@ public interface Configuration<T extends Configuration<T>> {
99
99
*
100
100
* @param constraintValidatorFactory constraint factory implementation.
101
101
*
102
- * @return < code> this</code> following the chaining method pattern.
102
+ * @return {@ code this} following the chaining method pattern.
103
103
*/
104
104
T constraintValidatorFactory (ConstraintValidatorFactory constraintValidatorFactory );
105
105
@@ -111,7 +111,7 @@ public interface Configuration<T extends Configuration<T>> {
111
111
*
112
112
* @param parameterNameProvider Parameter name provider implementation.
113
113
*
114
- * @return < code> this</code> following the chaining method pattern.
114
+ * @return {@ code this} following the chaining method pattern.
115
115
*/
116
116
T parameterNameProvider (ParameterNameProvider parameterNameProvider );
117
117
@@ -120,14 +120,14 @@ public interface Configuration<T extends Configuration<T>> {
120
120
* XML format.
121
121
* <p/>
122
122
* The stream should be closed by the client API after the
123
- * < code> ValidatorFactory</code> has been built. The Bean Validation provider
123
+ * {@ code ValidatorFactory} has been built. The Bean Validation provider
124
124
* must not close the stream.
125
125
*
126
126
* @param stream XML mapping stream.
127
127
*
128
- * @return < code> this</code> following the chaining method pattern.
128
+ * @return {@ code this} following the chaining method pattern.
129
129
*
130
- * @throws IllegalArgumentException if < code> stream</code> is null
130
+ * @throws IllegalArgumentException if {@ code stream} is null
131
131
*/
132
132
T addMapping (InputStream stream );
133
133
@@ -140,12 +140,12 @@ public interface Configuration<T extends Configuration<T>> {
140
140
* Note: Using this non type-safe method is generally not recommended.
141
141
* <p/>
142
142
* It is more appropriate to use, if available, the type-safe equivalent provided
143
- * by a specific provider via its < code> Configuration</code> subclass.
144
- * <code> ValidatorFactory factory = Validation.byProvider(ACMEPrivoder .class)
143
+ * by a specific provider via its {@ code Configuration} subclass.
144
+ * <pre>{@code ValidatorFactory factory = Validation.byProvider(ACMEProvider .class)
145
145
* .configure()
146
146
* .providerSpecificProperty(ACMEState.FAST)
147
- * .buildValidatorFactory();
148
- * </code >
147
+ * .buildValidatorFactory();}
148
+ * </pre >
149
149
* This method is typically used by containers parsing <i>META-INF/validation.xml</i>
150
150
* themselves and injecting the state to the Configuration object.
151
151
* <p/>
@@ -158,15 +158,15 @@ public interface Configuration<T extends Configuration<T>> {
158
158
* @param name property name.
159
159
* @param value property value.
160
160
*
161
- * @return < code> this</code> following the chaining method pattern.
161
+ * @return {@ code this} following the chaining method pattern.
162
162
*
163
- * @throws IllegalArgumentException if < code> name</code> is null
163
+ * @throws IllegalArgumentException if {@ code name} is null
164
164
*/
165
165
T addProperty (String name , String value );
166
166
167
167
/**
168
- * Return an implementation of the < code> MessageInterpolator</code> interface
169
- * following the default < code> MessageInterpolator</code> defined in the
168
+ * Return an implementation of the {@ code MessageInterpolator} interface
169
+ * following the default {@ code MessageInterpolator} defined in the
170
170
* specification:
171
171
* <ul>
172
172
* <li>use the ValidationMessages resource bundle to load keys</li>
@@ -178,8 +178,8 @@ public interface Configuration<T extends Configuration<T>> {
178
178
MessageInterpolator getDefaultMessageInterpolator ();
179
179
180
180
/**
181
- * Return an implementation of the < code> TraversableResolver</code> interface
182
- * following the default < code> TraversableResolver</code> defined in the
181
+ * Return an implementation of the {@ code TraversableResolver} interface
182
+ * following the default {@ code TraversableResolver} defined in the
183
183
* specification:
184
184
* <ul>
185
185
* <li>if Java Persistence is available in the runtime environment,
@@ -195,25 +195,25 @@ public interface Configuration<T extends Configuration<T>> {
195
195
TraversableResolver getDefaultTraversableResolver ();
196
196
197
197
/**
198
- * Return an implementation of the < code> ConstraintValidatorFactory</code> interface
199
- * following the default < code> ConstraintValidatorFactory</code> defined in the
198
+ * Return an implementation of the {@ code ConstraintValidatorFactory} interface
199
+ * following the default {@ code ConstraintValidatorFactory} defined in the
200
200
* specification:
201
201
* <ul>
202
- * <li>uses the public no-arg constructor of the < code> ConstraintValidator</code> </li>
202
+ * <li>uses the public no-arg constructor of the {@ code ConstraintValidator} </li>
203
203
* </ul>
204
204
*
205
205
* @return default ConstraintValidatorFactory implementation compliant with the specification
206
206
*/
207
207
ConstraintValidatorFactory getDefaultConstraintValidatorFactory ();
208
208
209
209
/**
210
- * Return an implementation of the < code> ParameterNameProvider</code>
211
- * interface following the default < code> ParameterNameProvider</code>
210
+ * Return an implementation of the {@ code ParameterNameProvider}
211
+ * interface following the default {@ code ParameterNameProvider}
212
212
* defined in the specification:
213
213
* <ul>
214
- * <li>returns names in the form < code> arg<PARAMETER_INDEX></code>
215
- * where < code> PARAMETER_INDEX</code> starts at 0 for the first parameter,
216
- * e.g. < code> arg0</code>, < code> arg1</code> etc.</code> </li>
214
+ * <li>returns names in the form {@ code arg<PARAMETER_INDEX>}
215
+ * where {@ code PARAMETER_INDEX} starts at 0 for the first parameter,
216
+ * e.g. {@ code arg0}, {@ code arg1} etc.</li>
217
217
* </ul>
218
218
*
219
219
* @return default ParameterNameProvider implementation compliant with
@@ -231,7 +231,7 @@ public interface Configuration<T extends Configuration<T>> {
231
231
ConfigurationSource getConfigurationSource ();
232
232
233
233
/**
234
- * Build a < code> ValidatorFactory</code> implementation.
234
+ * Build a {@ code ValidatorFactory} implementation.
235
235
*
236
236
* @return ValidatorFactory
237
237
*
0 commit comments