1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2013 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.
41
41
/**
42
42
* Utility methods for working with {@link ContextLoader ContextLoaders} and
43
43
* {@link SmartContextLoader SmartContextLoaders} and resolving resource locations,
44
- * annotated classes, and active bean definition profiles.
44
+ * annotated classes, active bean definition profiles, and application context
45
+ * initializers.
45
46
*
46
47
* @author Sam Brannen
47
48
* @since 3.1
50
51
* @see ContextConfiguration
51
52
* @see ContextConfigurationAttributes
52
53
* @see ActiveProfiles
54
+ * @see ApplicationContextInitializer
53
55
* @see MergedContextConfiguration
54
56
*/
55
57
abstract class ContextLoaderUtils {
@@ -78,7 +80,7 @@ private ContextLoaderUtils() {
78
80
* either {@value #DEFAULT_CONTEXT_LOADER_CLASS_NAME}
79
81
* or {@value #DEFAULT_WEB_CONTEXT_LOADER_CLASS_NAME} will be used as the
80
82
* default context loader class name. For details on the class resolution
81
- * process, see {@link #resolveContextLoaderClass() }.
83
+ * process, see {@link #resolveContextLoaderClass}.
82
84
*
83
85
* @param testClass the test class for which the {@code ContextLoader}
84
86
* should be resolved; must not be {@code null}
@@ -89,8 +91,9 @@ private ContextLoaderUtils() {
89
91
* {@code ContextLoader} class to use; may be {@code null} or <em>empty</em>
90
92
* @return the resolved {@code ContextLoader} for the supplied
91
93
* {@code testClass} (never {@code null})
92
- * @see #resolveContextLoaderClass()
94
+ * @see #resolveContextLoaderClass
93
95
*/
96
+ @ SuppressWarnings ("javadoc" )
94
97
static ContextLoader resolveContextLoader (Class <?> testClass ,
95
98
List <ContextConfigurationAttributes > configAttributesList , String defaultContextLoaderClassName ) {
96
99
Assert .notNull (testClass , "Class must not be null" );
@@ -348,11 +351,11 @@ else if (!ObjectUtils.isEmpty(valueProfiles)) {
348
351
* @param defaultContextLoaderClassName the name of the default
349
352
* {@code ContextLoader} class to use (may be {@code null})
350
353
* @return the merged context configuration
351
- * @see #resolveContextLoader()
352
- * @see #resolveContextConfigurationAttributes()
353
- * @see SmartContextLoader#processContextConfiguration()
354
- * @see ContextLoader#processLocations()
355
- * @see #resolveActiveProfiles()
354
+ * @see #resolveContextLoader
355
+ * @see #resolveContextConfigurationAttributes
356
+ * @see SmartContextLoader#processContextConfiguration
357
+ * @see ContextLoader#processLocations
358
+ * @see #resolveActiveProfiles
356
359
* @see MergedContextConfiguration
357
360
*/
358
361
static MergedContextConfiguration buildMergedContextConfiguration (Class <?> testClass ,
0 commit comments