1
1
/*
2
- * Copyright 2002-2017 the original author or authors.
2
+ * Copyright 2002-2021 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.
22
22
import org .springframework .lang .Nullable ;
23
23
24
24
/**
25
- * Simple interface for bean definition readers.
26
- * Specifies load methods with Resource and String location parameters.
25
+ * Simple interface for bean definition readers that specifies load methods with
26
+ * {@link Resource} and {@link String} location parameters.
27
27
*
28
28
* <p>Concrete bean definition readers can of course add additional
29
29
* load and register methods for bean definitions, specific to
30
30
* their bean definition format.
31
31
*
32
32
* <p>Note that a bean definition reader does not have to implement
33
- * this interface. It only serves as suggestion for bean definition
33
+ * this interface. It only serves as a suggestion for bean definition
34
34
* readers that want to follow standard naming conventions.
35
35
*
36
36
* @author Juergen Hoeller
@@ -41,25 +41,25 @@ public interface BeanDefinitionReader {
41
41
42
42
/**
43
43
* Return the bean factory to register the bean definitions with.
44
- * <p>The factory is exposed through the BeanDefinitionRegistry interface,
44
+ * <p>The factory is exposed through the {@link BeanDefinitionRegistry} interface,
45
45
* encapsulating the methods that are relevant for bean definition handling.
46
46
*/
47
47
BeanDefinitionRegistry getRegistry ();
48
48
49
49
/**
50
- * Return the resource loader to use for resource locations.
51
- * Can be checked for the <b> ResourcePatternResolver</b> interface and cast
50
+ * Return the {@link ResourceLoader} to use for resource locations.
51
+ * <p> Can be checked for the {@code ResourcePatternResolver} interface and cast
52
52
* accordingly, for loading multiple resources for a given resource pattern.
53
53
* <p>A {@code null} return value suggests that absolute resource loading
54
54
* is not available for this bean definition reader.
55
55
* <p>This is mainly meant to be used for importing further resources
56
56
* from within a bean definition resource, for example via the "import"
57
57
* tag in XML bean definitions. It is recommended, however, to apply
58
58
* such imports relative to the defining resource; only explicit full
59
- * resource locations will trigger absolute resource loading.
59
+ * resource locations will trigger absolute path based resource loading.
60
60
* <p>There is also a {@code loadBeanDefinitions(String)} method available,
61
61
* for loading bean definitions from a resource location (or location pattern).
62
- * This is a convenience to avoid explicit ResourceLoader handling.
62
+ * This is a convenience to avoid explicit {@code ResourceLoader} handling.
63
63
* @see #loadBeanDefinitions(String)
64
64
* @see org.springframework.core.io.support.ResourcePatternResolver
65
65
*/
@@ -70,13 +70,13 @@ public interface BeanDefinitionReader {
70
70
* Return the class loader to use for bean classes.
71
71
* <p>{@code null} suggests to not load bean classes eagerly
72
72
* but rather to just register bean definitions with class names,
73
- * with the corresponding Classes to be resolved later (or never).
73
+ * with the corresponding classes to be resolved later (or never).
74
74
*/
75
75
@ Nullable
76
76
ClassLoader getBeanClassLoader ();
77
77
78
78
/**
79
- * Return the BeanNameGenerator to use for anonymous beans
79
+ * Return the {@link BeanNameGenerator} to use for anonymous beans
80
80
* (without explicit bean name specified).
81
81
*/
82
82
BeanNameGenerator getBeanNameGenerator ();
@@ -101,9 +101,10 @@ public interface BeanDefinitionReader {
101
101
/**
102
102
* Load bean definitions from the specified resource location.
103
103
* <p>The location can also be a location pattern, provided that the
104
- * ResourceLoader of this bean definition reader is a ResourcePatternResolver.
105
- * @param location the resource location, to be loaded with the ResourceLoader
106
- * (or ResourcePatternResolver) of this bean definition reader
104
+ * {@link ResourceLoader} of this bean definition reader is a
105
+ * {@code ResourcePatternResolver}.
106
+ * @param location the resource location, to be loaded with the {@code ResourceLoader}
107
+ * (or {@code ResourcePatternResolver}) of this bean definition reader
107
108
* @return the number of bean definitions found
108
109
* @throws BeanDefinitionStoreException in case of loading or parsing errors
109
110
* @see #getResourceLoader()
@@ -114,8 +115,8 @@ public interface BeanDefinitionReader {
114
115
115
116
/**
116
117
* Load bean definitions from the specified resource locations.
117
- * @param locations the resource locations, to be loaded with the ResourceLoader
118
- * (or ResourcePatternResolver) of this bean definition reader
118
+ * @param locations the resource locations, to be loaded with the {@code ResourceLoader}
119
+ * (or {@code ResourcePatternResolver} ) of this bean definition reader
119
120
* @return the number of bean definitions found
120
121
* @throws BeanDefinitionStoreException in case of loading or parsing errors
121
122
*/
0 commit comments