@Configuration class.
Includes a set of Bean methods, including all such methods
defined in the ancestry of the class, in a 'flattened-out' manner.
BeanMethod, ConfigurationClassParser
| Modifier and Type | Class and Description |
|---|---|
| private class | ConfigurationClass.
Configuration classes are not allowed to contain overloaded bean methods by default (as of 6.0). |
| private class | ConfigurationClass.
Configuration classes must be non-final to accommodate CGLIB subclassing. |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private String | |
| private final Map | |
| private final Set | |
| private final Map | |
| private final AnnotationMetadata | |
| private final Resource | |
| pack-priv final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv | ConfigurationClass(MetadataReader
reader used to parse the underlying metadataReader, String Classmust not be beanName)nullCreate a new |
| pack-priv | ConfigurationClass(MetadataReader
reader used to parse the underlying metadataReader, ConfigurationClass Classthe configuration class importing this one or importedBy)nullCreate a new |
| pack-priv | ConfigurationClass(Class<?>
the underlying clazz, String Class to representname of the beanName)@Configuration class beanCreate a new |
| pack-priv | ConfigurationClass(Class<?>
the underlying clazz, ConfigurationClass Class to representthe configuration class importing this one (or importedBy)null)Create a new |
| pack-priv | ConfigurationClass(AnnotationMetadata
the metadata for the underlying class to represent metadata, String name of the beanName)@Configuration class beanCreate a new |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | addImportBeanDefinitionRegistrar(ImportBeanDefinitionRegistrar registrar, AnnotationMetadata importingClassMetadata)
|
| pack-priv void | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| pack-priv Set | |
| public String | |
| pack-priv Map | |
| pack-priv Set | getImportedBy()
Return the configuration classes that imported this class, or an empty Set if this configuration was not imported. |
| pack-priv Map | |
| pack-priv AnnotationMetadata | |
| pack-priv Resource | |
| pack-priv String | |
| public int | |
| public boolean | isImported()
Return whether this configuration class was registered via @ |
| pack-priv void | mergeImportedBy(ConfigurationClass otherConfigClass)
Merge the imported-by declarations from the given configuration class into this one. |
| pack-priv void | |
| public String | |
| pack-priv void |
| beanMethods | back to summary |
|---|---|
| private final Set<BeanMethod> beanMethods | |
| beanName | back to summary |
|---|---|
| private String beanName
| |
| importBeanDefinitionRegistrars | back to summary |
|---|---|
| private final Map<ImportBeanDefinitionRegistrar, AnnotationMetadata> importBeanDefinitionRegistrars | |
| importedBy | back to summary |
|---|---|
| private final Set<ConfigurationClass> importedBy | |
| importedResources | back to summary |
|---|---|
| private final Map<String, Class<? extends BeanDefinitionReader>> importedResources | |
| metadata | back to summary |
|---|---|
| private final AnnotationMetadata metadata | |
| resource | back to summary |
|---|---|
| private final Resource resource | |
| skippedBeanMethods | back to summary |
|---|---|
| pack-priv final Set<String> skippedBeanMethods | |
| ConfigurationClass | back to summary |
|---|---|
| pack-priv ConfigurationClass(MetadataReader metadataReader, String beanName) Create a new
| |
| ConfigurationClass | back to summary |
|---|---|
| pack-priv ConfigurationClass(MetadataReader metadataReader, ConfigurationClass importedBy) Create a new
| |
| ConfigurationClass | back to summary |
|---|---|
| pack-priv ConfigurationClass(Class<?> clazz, String beanName) Create a new
| |
| ConfigurationClass | back to summary |
|---|---|
| pack-priv ConfigurationClass(Class<?> clazz, ConfigurationClass importedBy) Create a new
| |
| ConfigurationClass | back to summary |
|---|---|
| pack-priv ConfigurationClass(AnnotationMetadata metadata, String beanName) Create a new
| |
| addBeanMethod | back to summary |
|---|---|
| pack-priv void addBeanMethod(BeanMethod method) | |
| addImportBeanDefinitionRegistrar | back to summary |
|---|---|
| pack-priv void addImportBeanDefinitionRegistrar(ImportBeanDefinitionRegistrar registrar, AnnotationMetadata importingClassMetadata) | |
| addImportedResource | back to summary |
|---|---|
| pack-priv void addImportedResource(String importedResource, Class<? extends BeanDefinitionReader> readerClass) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getBeanMethods | back to summary |
|---|---|
| pack-priv Set | |
| getBeanName | back to summary |
|---|---|
public String getBeanName()
| |
| getImportBeanDefinitionRegistrars | back to summary |
|---|---|
| pack-priv Map | |
| getImportedBy | back to summary |
|---|---|
| pack-priv Set Return the configuration classes that imported this class, or an empty Set if this configuration was not imported.
| |
| getImportedResources | back to summary |
|---|---|
| pack-priv Map | |
| getMetadata | back to summary |
|---|---|
| pack-priv AnnotationMetadata getMetadata() | |
| getResource | back to summary |
|---|---|
| pack-priv Resource getResource() | |
| getSimpleName | back to summary |
|---|---|
| pack-priv String getSimpleName() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isImported | back to summary |
|---|---|
| public boolean isImported() Return whether this configuration class was registered via @
| |
| mergeImportedBy | back to summary |
|---|---|
| pack-priv void mergeImportedBy(ConfigurationClass otherConfigClass) Merge the imported-by declarations from the given configuration class into this one.
| |
| setBeanName | back to summary |
|---|---|
| pack-priv void setBeanName(String beanName) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| validate | back to summary |
|---|---|
| pack-priv void validate(ProblemReporter problemReporter) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| BeanMethodOverloadingProblem | back to summary |
|---|---|
| pack-priv BeanMethodOverloadingProblem(String methodName) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| FinalConfigurationProblem | back to summary |
|---|---|
| pack-priv FinalConfigurationProblem() | |