org.springframework.context.annotation
Class ConfigurationClass
java.lang.Object
org.springframework.context.annotation.ConfigurationClass
final class ConfigurationClass
- extends java.lang.Object
Represents a user-defined @Configuration
class.
Includes a set of Bean
methods, including all such methods defined in the
ancestry of the class, in a 'flattened-out' manner.
- Since:
- 3.0
- Author:
- Chris Beams, Juergen Hoeller
- See Also:
ConfigurationClassMethod
,
ConfigurationClassParser
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
metadata
private final AnnotationMetadata metadata
resource
private final Resource resource
importedResources
private final java.util.Map<java.lang.String,java.lang.Class<?>> importedResources
methods
private final java.util.Set<ConfigurationClassMethod> methods
beanName
private java.lang.String beanName
ConfigurationClass
public ConfigurationClass(MetadataReader metadataReader,
java.lang.String beanName)
ConfigurationClass
public ConfigurationClass(java.lang.Class<?> clazz,
java.lang.String beanName)
getMetadata
public AnnotationMetadata getMetadata()
getResource
public Resource getResource()
getSimpleName
public java.lang.String getSimpleName()
setBeanName
public void setBeanName(java.lang.String beanName)
getBeanName
public java.lang.String getBeanName()
addMethod
public void addMethod(ConfigurationClassMethod method)
getMethods
public java.util.Set<ConfigurationClassMethod> getMethods()
addImportedResource
public void addImportedResource(java.lang.String importedResource,
java.lang.Class<?> readerClass)
getImportedResources
public java.util.Map<java.lang.String,java.lang.Class<?>> getImportedResources()
validate
public void validate(ProblemReporter problemReporter)
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object