org.springframework.beans.factory.annotation
Class AnnotatedGenericBeanDefinition
java.lang.Object
   org.springframework.core.AttributeAccessorSupport
org.springframework.core.AttributeAccessorSupport
       org.springframework.beans.BeanMetadataAttributeAccessor
org.springframework.beans.BeanMetadataAttributeAccessor
           org.springframework.beans.factory.support.AbstractBeanDefinition
org.springframework.beans.factory.support.AbstractBeanDefinition
               org.springframework.beans.factory.support.GenericBeanDefinition
org.springframework.beans.factory.support.GenericBeanDefinition
                   org.springframework.beans.factory.annotation.AnnotatedGenericBeanDefinition
org.springframework.beans.factory.annotation.AnnotatedGenericBeanDefinition
- All Implemented Interfaces: 
- Serializable, Cloneable, BeanMetadataElement, AnnotatedBeanDefinition, BeanDefinition, AttributeAccessor
- public class AnnotatedGenericBeanDefinition 
- extends GenericBeanDefinition- implements AnnotatedBeanDefinition
Extension of the GenericBeanDefinition
 class, adding support for annotation metadata exposed through the
 AnnotatedBeanDefinition interface.
 
This GenericBeanDefinition variant is mainly useful for testing code that expects
 to operate on an AnnotatedBeanDefinition, for example strategy implementations
 in Spring's component scanning support (where the default definition class is
 ScannedGenericBeanDefinition,
 which also implements the AnnotatedBeanDefinition interface).
- Since:
- 2.5
- Author:
- Juergen Hoeller
- See Also:
- AnnotatedBeanDefinition.getMetadata(),- StandardAnnotationMetadata, 
Serialized Form
 
 
 
 
| Method Summary | 
|  AnnotationMetadata | getMetadata()Obtain the annotation metadata (as well as basic class metadata)
 for this bean definition's bean class.
 | 
 
 
| Methods inherited from class org.springframework.beans.factory.support.AbstractBeanDefinition | 
| addQualifier, applyDefaults, clone, copyQualifiersFrom, getAutowireMode, getBeanClass, getBeanClassName, getConstructorArgumentValues, getDependencyCheck, getDependsOn, getDescription, getDestroyMethodName, getFactoryBeanName, getFactoryMethodName, getInitMethodName, getMethodOverrides, getOriginatingBeanDefinition, getPropertyValues, getQualifier, getQualifiers, getResolvedAutowireMode, getResource, getResourceDescription, getRole, getScope, hasBeanClass, hasConstructorArgumentValues, hashCode, hasQualifier, isAbstract, isAutowireCandidate, isEnforceDestroyMethod, isEnforceInitMethod, isLazyInit, isPrimary, isPrototype, isSingleton, isSynthetic, overrideFrom, overrideFrom, prepareMethodOverride, prepareMethodOverrides, resolveBeanClass, setAbstract, setAutowireCandidate, setAutowireMode, setBeanClass, setBeanClassName, setConstructorArgumentValues, setDependencyCheck, setDependsOn, setDescription, setDestroyMethodName, setEnforceDestroyMethod, setEnforceInitMethod, setFactoryBeanName, setFactoryMethodName, setInitMethodName, setLazyInit, setMethodOverrides, setOriginatingBeanDefinition, setPrimary, setPropertyValues, setResource, setResourceDescription, setRole, setScope, setSingleton, setSynthetic, validate | 
 
 
 
 
| Methods inherited from interface org.springframework.beans.factory.config.BeanDefinition | 
| getBeanClassName, getConstructorArgumentValues, getDescription, getFactoryBeanName, getFactoryMethodName, getOriginatingBeanDefinition, getParentName, getPropertyValues, getResourceDescription, getRole, getScope, isAbstract, isAutowireCandidate, isLazyInit, isSingleton, setAutowireCandidate, setBeanClassName, setFactoryBeanName, setFactoryMethodName, setParentName, setScope | 
 
 
 
AnnotatedGenericBeanDefinition
public AnnotatedGenericBeanDefinition(Class beanClass)
- Create a new AnnotatedGenericBeanDefinition for the given bean class.
 
- Parameters:
- beanClass- the loaded bean class
 
getMetadata
public final AnnotationMetadata getMetadata()
- Description copied from interface: AnnotatedBeanDefinition
- Obtain the annotation metadata (as well as basic class metadata)
 for this bean definition's bean class.
 
- 
- Specified by:
- getMetadatain interface- AnnotatedBeanDefinition
 
- 
- Returns:
- the annotation metadata object (never null)
 
Copyright © 2002-2008 The Spring Framework.