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:
BeanMethod
,
ConfigurationClassParser
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, 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
beanMethods
private final java.util.Set<BeanMethod> beanMethods
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()
addBeanMethod
public void addBeanMethod(BeanMethod method)
getBeanMethods
public java.util.Set<BeanMethod> getBeanMethods()
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
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object