Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » beans » factory » support » [javadoc | source]
org.springframework.beans.factory.support
public class: GenericBeanDefinition [javadoc | source]
java.lang.Object
   org.springframework.core.AttributeAccessorSupport
      org.springframework.beans.BeanMetadataAttributeAccessor
         org.springframework.beans.factory.support.AbstractBeanDefinition
            org.springframework.beans.factory.support.GenericBeanDefinition

All Implemented Interfaces:
    Cloneable, BeanDefinition, BeanMetadataElement, AttributeAccessor, Serializable

Direct Known Subclasses:
    AnnotatedGenericBeanDefinition, ScannedGenericBeanDefinition

GenericBeanDefinition is a one-stop shop for standard bean definition purposes. Like any bean definition, it allows for specifying a class plus optionally constructor argument values and property values. Additionally, deriving from a parent bean definition can be flexibly configured through the "parentName" property.

In general, use this GenericBeanDefinition class for the purpose of registering user-visible bean definitions (which a post-processor might operate on, potentially even reconfiguring the parent name). Use RootBeanDefinition / ChildBeanDefinition where parent/child relationships happen to be pre-determined.

Fields inherited from org.springframework.beans.factory.support.AbstractBeanDefinition:
AUTOWIRE_NO,  AUTOWIRE_BY_NAME,  AUTOWIRE_BY_TYPE,  AUTOWIRE_CONSTRUCTOR,  AUTOWIRE_AUTODETECT,  DEPENDENCY_CHECK_NONE,  DEPENDENCY_CHECK_OBJECTS,  DEPENDENCY_CHECK_SIMPLE,  DEPENDENCY_CHECK_ALL
Constructor:
 public GenericBeanDefinition() 
 public GenericBeanDefinition(BeanDefinition original) 
    Create a new GenericBeanDefinition as deep copy of the given bean definition.
    Parameters:
    original - the original bean definition to copy from
Method from org.springframework.beans.factory.support.GenericBeanDefinition Summary:
cloneBeanDefinition,   equals,   getParentName,   setParentName,   toString
Methods from org.springframework.beans.factory.support.AbstractBeanDefinition:
addQualifier,   applyDefaults,   clone,   cloneBeanDefinition,   copyQualifiersFrom,   equals,   getAutowireMode,   getBeanClass,   getBeanClassName,   getConstructorArgumentValues,   getDependencyCheck,   getDependsOn,   getDescription,   getDestroyMethodName,   getFactoryBeanName,   getFactoryMethodName,   getInitMethodName,   getMethodOverrides,   getOriginatingBeanDefinition,   getPropertyValues,   getQualifier,   getQualifiers,   getResolvedAutowireMode,   getResource,   getResourceDescription,   getRole,   getScope,   hasBeanClass,   hasConstructorArgumentValues,   hasQualifier,   hashCode,   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,   toString,   validate
Methods from org.springframework.beans.BeanMetadataAttributeAccessor:
addMetadataAttribute,   getAttribute,   getMetadataAttribute,   getSource,   removeAttribute,   setAttribute,   setSource
Methods from org.springframework.core.AttributeAccessorSupport:
attributeNames,   copyAttributesFrom,   equals,   getAttribute,   hasAttribute,   hashCode,   removeAttribute,   setAttribute
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.beans.factory.support.GenericBeanDefinition Detail:
 public AbstractBeanDefinition cloneBeanDefinition() 
 public boolean equals(Object other) 
 public String getParentName() 
 public  void setParentName(String parentName) 
 public String toString()