Java Doc for DefaultListableBeanFactory.java in  » J2EE » spring-framework-2.0.6 » org » springframework » beans » factory » support » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » spring framework 2.0.6 » org.springframework.beans.factory.support 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
      org.springframework.beans.factory.support.AbstractBeanFactory
         org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
            org.springframework.beans.factory.support.DefaultListableBeanFactory

All known Subclasses:   org.springframework.beans.factory.xml.XmlBeanFactory,
DefaultListableBeanFactory
public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFactory implements ConfigurableListableBeanFactory,BeanDefinitionRegistry(Code)
Default implementation of the org.springframework.beans.factory.ListableBeanFactory and BeanDefinitionRegistry interfaces: a full-fledged bean factory based on bean definition objects.

Typical usage is registering all bean definitions first (possibly read from a bean definition file), before accessing beans. Bean definition lookup is therefore an inexpensive operation in a local bean definition table, operating on pre-built bean definition metadata objects.

Can be used as a standalone bean factory, or as a superclass for custom bean factories. Note that readers for specific bean definition formats are typically implemented separately rather than as bean factory subclasses: see for example PropertiesBeanDefinitionReader and org.springframework.beans.factory.xml.XmlBeanDefinitionReader .

For an alternative implementation of the org.springframework.beans.factory.ListableBeanFactory interface, have a look at StaticListableBeanFactory , which manages existing bean instances rather than creating new ones based on bean definitions.
author:
   Rod Johnson
author:
   Juergen Hoeller
since:
   16 April 2001
See Also:   StaticListableBeanFactory
See Also:   PropertiesBeanDefinitionReader
See Also:   org.springframework.beans.factory.xml.XmlBeanDefinitionReader




Constructor Summary
public  DefaultListableBeanFactory()
     Create a new DefaultListableBeanFactory.
public  DefaultListableBeanFactory(BeanFactory parentBeanFactory)
     Create a new DefaultListableBeanFactory with the given parent.

Method Summary
public  booleancontainsBeanDefinition(String beanName)
    
public  voidcopyConfigurationFrom(ConfigurableBeanFactory otherFactory)
    
protected  MapfindAutowireCandidates(String beanName, Class requiredType)
    
public  BeanDefinitiongetBeanDefinition(String beanName)
    
public  intgetBeanDefinitionCount()
    
public  String[]getBeanDefinitionNames()
    
public  String[]getBeanNamesForType(Class type)
    
public  String[]getBeanNamesForType(Class type, boolean includePrototypes, boolean allowEagerInit)
    
public  MapgetBeansOfType(Class type)
    
public  MapgetBeansOfType(Class type, boolean includePrototypes, boolean allowEagerInit)
    
public  voidpreInstantiateSingletons()
    
public  voidregisterBeanDefinition(String beanName, BeanDefinition beanDefinition)
    
public  voidsetAllowBeanDefinitionOverriding(boolean allowBeanDefinitionOverriding)
     Set whether it should be allowed to override bean definitions by registering a different definition with the same name, automatically replacing the former. If not, an exception will be thrown.
public  voidsetAllowEagerClassLoading(boolean allowEagerClassLoading)
     Set whether the factory is allowed to eagerly load bean classes even for bean definitions that are marked as "lazy-init".

Default is "true".

public  StringtoString()
    


Constructor Detail
DefaultListableBeanFactory
public DefaultListableBeanFactory()(Code)
Create a new DefaultListableBeanFactory.



DefaultListableBeanFactory
public DefaultListableBeanFactory(BeanFactory parentBeanFactory)(Code)
Create a new DefaultListableBeanFactory with the given parent.
Parameters:
  parentBeanFactory - the parent BeanFactory




Method Detail
containsBeanDefinition
public boolean containsBeanDefinition(String beanName)(Code)



copyConfigurationFrom
public void copyConfigurationFrom(ConfigurableBeanFactory otherFactory)(Code)



findAutowireCandidates
protected Map findAutowireCandidates(String beanName, Class requiredType)(Code)



getBeanDefinition
public BeanDefinition getBeanDefinition(String beanName) throws NoSuchBeanDefinitionException(Code)



getBeanDefinitionCount
public int getBeanDefinitionCount()(Code)



getBeanDefinitionNames
public String[] getBeanDefinitionNames()(Code)



getBeanNamesForType
public String[] getBeanNamesForType(Class type)(Code)



getBeanNamesForType
public String[] getBeanNamesForType(Class type, boolean includePrototypes, boolean allowEagerInit)(Code)



getBeansOfType
public Map getBeansOfType(Class type) throws BeansException(Code)



getBeansOfType
public Map getBeansOfType(Class type, boolean includePrototypes, boolean allowEagerInit) throws BeansException(Code)



preInstantiateSingletons
public void preInstantiateSingletons() throws BeansException(Code)



registerBeanDefinition
public void registerBeanDefinition(String beanName, BeanDefinition beanDefinition) throws BeanDefinitionStoreException(Code)



setAllowBeanDefinitionOverriding
public void setAllowBeanDefinitionOverriding(boolean allowBeanDefinitionOverriding)(Code)
Set whether it should be allowed to override bean definitions by registering a different definition with the same name, automatically replacing the former. If not, an exception will be thrown. Default is "true".



setAllowEagerClassLoading
public void setAllowEagerClassLoading(boolean allowEagerClassLoading)(Code)
Set whether the factory is allowed to eagerly load bean classes even for bean definitions that are marked as "lazy-init".

Default is "true". Turn this flag off to suppress class loading for lazy-init beans unless such a bean is explicitly requested. In particular, by-type lookups will then simply ignore bean definitions without resolved class name, instead of loading the bean classes on demand just to perform a type check.
See Also:   AbstractBeanDefinition.setLazyInit




toString
public String toString()(Code)



Methods inherited from org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
public Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) throws BeansException(Code)(Java Doc)
public Object applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName) throws BeansException(Code)(Java Doc)
protected Object applyBeanPostProcessorsBeforeInstantiation(Class beanClass, String beanName) throws BeansException(Code)(Java Doc)
public void applyBeanPropertyValues(Object existingBean, String beanName) throws BeansException(Code)(Java Doc)
protected void applyPropertyValues(String beanName, RootBeanDefinition mbd, BeanWrapper bw, PropertyValues pvs)(Code)(Java Doc)
public Object autowire(Class beanClass, int autowireMode, boolean dependencyCheck) throws BeansException(Code)(Java Doc)
public void autowireBeanProperties(Object existingBean, int autowireMode, boolean dependencyCheck) throws BeansException(Code)(Java Doc)
protected void autowireByName(String beanName, RootBeanDefinition mbd, BeanWrapper bw, MutablePropertyValues pvs)(Code)(Java Doc)
protected void autowireByType(String beanName, RootBeanDefinition mbd, BeanWrapper bw, MutablePropertyValues pvs)(Code)(Java Doc)
protected BeanWrapper autowireConstructor(String beanName, RootBeanDefinition mbd, Constructor ctor)(Code)(Java Doc)
protected void checkDependencies(String beanName, RootBeanDefinition mbd, PropertyDescriptor[] pds, PropertyValues pvs) throws UnsatisfiedDependencyException(Code)(Java Doc)
public Object configureBean(Object existingBean, String beanName) throws BeansException(Code)(Java Doc)
public void copyConfigurationFrom(ConfigurableBeanFactory otherFactory)(Code)(Java Doc)
public Object createBean(Class beanClass, int autowireMode, boolean dependencyCheck) throws BeansException(Code)(Java Doc)
protected Object createBean(String beanName, RootBeanDefinition mbd, Object[] args) throws BeanCreationException(Code)(Java Doc)
protected BeanWrapper createBeanInstance(String beanName, RootBeanDefinition mbd, Object[] args)(Code)(Java Doc)
protected Constructor determineConstructorFromBeanPostProcessors(Class beanClass, String beanName) throws BeansException(Code)(Java Doc)
protected PropertyDescriptor[] filterPropertyDescriptorsForDependencyCheck(BeanWrapper bw)(Code)(Java Doc)
protected Map findAutowireCandidates(String beanName, Class requiredType) throws BeansException(Code)(Java Doc)
protected Map findMatchingBeans(Class requiredType) throws BeansException(Code)(Java Doc)
protected InstantiationStrategy getInstantiationStrategy()(Code)(Java Doc)
protected Class getTypeForFactoryBean(String beanName, RootBeanDefinition mbd)(Code)(Java Doc)
protected Class getTypeForFactoryMethod(String beanName, RootBeanDefinition mbd)(Code)(Java Doc)
public void ignoreDependencyInterface(Class ifc)(Code)(Java Doc)
public void ignoreDependencyType(Class type)(Code)(Java Doc)
public Object initializeBean(Object existingBean, String beanName)(Code)(Java Doc)
protected Object initializeBean(String beanName, Object bean, RootBeanDefinition mbd)(Code)(Java Doc)
protected BeanWrapper instantiateBean(String beanName, RootBeanDefinition mbd)(Code)(Java Doc)
protected BeanWrapper instantiateUsingFactoryMethod(String beanName, RootBeanDefinition mbd, Object[] explicitArgs)(Code)(Java Doc)
protected void invokeCustomInitMethod(String beanName, Object bean, String initMethodName, boolean enforceInitMethod) throws Throwable(Code)(Java Doc)
protected void invokeInitMethods(String beanName, Object bean, RootBeanDefinition mbd) throws Throwable(Code)(Java Doc)
protected boolean isExcludedFromDependencyCheck(PropertyDescriptor pd)(Code)(Java Doc)
protected void populateBean(String beanName, RootBeanDefinition mbd, BeanWrapper bw)(Code)(Java Doc)
protected Object postProcessObjectFromFactoryBean(Object object, String beanName)(Code)(Java Doc)
protected Class predictBeanType(String beanName, RootBeanDefinition mbd)(Code)(Java Doc)
protected void removeSingleton(String beanName)(Code)(Java Doc)
public void setAllowCircularReferences(boolean allowCircularReferences)(Code)(Java Doc)
public void setAllowRawInjectionDespiteWrapping(boolean allowRawInjectionDespiteWrapping)(Code)(Java Doc)
public void setInstantiationStrategy(InstantiationStrategy instantiationStrategy)(Code)(Java Doc)
protected String[] unsatisfiedNonSimpleProperties(RootBeanDefinition mbd, BeanWrapper bw)(Code)(Java Doc)

Methods inherited from org.springframework.beans.factory.support.AbstractBeanFactory
public void addBeanPostProcessor(BeanPostProcessor beanPostProcessor)(Code)(Java Doc)
public void addPropertyEditorRegistrar(PropertyEditorRegistrar registrar)(Code)(Java Doc)
protected void afterPrototypeCreation(String beanName)(Code)(Java Doc)
protected void beforePrototypeCreation(String beanName)(Code)(Java Doc)
protected void checkMergedBeanDefinition(RootBeanDefinition mbd, String beanName, Object[] args) throws BeanDefinitionStoreException(Code)(Java Doc)
protected void clearMergedBeanDefinition(String beanName)(Code)(Java Doc)
public boolean containsBean(String name)(Code)(Java Doc)
abstract protected boolean containsBeanDefinition(String beanName)(Code)(Java Doc)
public boolean containsLocalBean(String name)(Code)(Java Doc)
public void copyConfigurationFrom(ConfigurableBeanFactory otherFactory)(Code)(Java Doc)
abstract protected Object createBean(String beanName, RootBeanDefinition mbd, Object[] args) throws BeanCreationException(Code)(Java Doc)
public void destroyBean(String beanName, Object beanInstance)(Code)(Java Doc)
protected void destroyBean(String beanName, Object beanInstance, RootBeanDefinition mbd)(Code)(Java Doc)
public void destroyScopedBean(String beanName)(Code)(Java Doc)
public String[] getAliases(String name)(Code)(Java Doc)
public Object getBean(String name) throws BeansException(Code)(Java Doc)
public Object getBean(String name, Class requiredType) throws BeansException(Code)(Java Doc)
public Object getBean(String name, Object[] args) throws BeansException(Code)(Java Doc)
public Object getBean(String name, Class requiredType, Object[] args) throws BeansException(Code)(Java Doc)
public ClassLoader getBeanClassLoader()(Code)(Java Doc)
abstract protected BeanDefinition getBeanDefinition(String beanName) throws BeansException(Code)(Java Doc)
public int getBeanPostProcessorCount()(Code)(Java Doc)
public List getBeanPostProcessors()(Code)(Java Doc)
public Map getCustomEditors()(Code)(Java Doc)
public RootBeanDefinition getMergedBeanDefinition(String beanName) throws BeansException(Code)(Java Doc)
protected RootBeanDefinition getMergedBeanDefinition(String beanName, boolean includingAncestors) throws BeansException(Code)(Java Doc)
protected RootBeanDefinition getMergedBeanDefinition(String beanName, BeanDefinition bd) throws BeanDefinitionStoreException(Code)(Java Doc)
protected RootBeanDefinition getMergedBeanDefinition(String beanName, BeanDefinition bd, BeanDefinition containingBd) throws BeanDefinitionStoreException(Code)(Java Doc)
protected Object getObjectForBeanInstance(Object beanInstance, String name, RootBeanDefinition mbd)(Code)(Java Doc)
public BeanFactory getParentBeanFactory()(Code)(Java Doc)
public Set getPropertyEditorRegistrars()(Code)(Java Doc)
public Scope getRegisteredScope(String scopeName)(Code)(Java Doc)
public String[] getRegisteredScopeNames()(Code)(Java Doc)
public Class getType(String name) throws NoSuchBeanDefinitionException(Code)(Java Doc)
public TypeConverter getTypeConverter()(Code)(Java Doc)
protected Class getTypeForFactoryBean(String beanName, RootBeanDefinition mbd)(Code)(Java Doc)
protected Class getTypeForFactoryBean(FactoryBean factoryBean)(Code)(Java Doc)
protected boolean hasDestructionAwareBeanPostProcessors()(Code)(Java Doc)
protected boolean hasInstantiationAwareBeanPostProcessors()(Code)(Java Doc)
protected void initBeanWrapper(BeanWrapper bw)(Code)(Java Doc)
protected boolean isAlias(String beanName)(Code)(Java Doc)
protected boolean isBeanClassMatch(String beanName, RootBeanDefinition mbd, Class targetType) throws CannotLoadBeanClassException(Code)(Java Doc)
protected boolean isBeanNameInUse(String beanName)(Code)(Java Doc)
public boolean isCacheBeanMetadata()(Code)(Java Doc)
public boolean isCurrentlyInCreation(String beanName)(Code)(Java Doc)
public boolean isFactoryBean(String name) throws NoSuchBeanDefinitionException(Code)(Java Doc)
public boolean isPrototype(String name) throws NoSuchBeanDefinitionException(Code)(Java Doc)
final protected boolean isPrototypeCurrentlyInCreation(String beanName)(Code)(Java Doc)
public boolean isSingleton(String name) throws NoSuchBeanDefinitionException(Code)(Java Doc)
public boolean isTypeMatch(String name, Class targetType) throws NoSuchBeanDefinitionException(Code)(Java Doc)
protected String originalBeanName(String name)(Code)(Java Doc)
protected Object postProcessObjectFromFactoryBean(Object object, String beanName) throws BeansException(Code)(Java Doc)
protected Class predictBeanType(String beanName, RootBeanDefinition mbd)(Code)(Java Doc)
public void registerAlias(String beanName, String alias) throws BeanDefinitionStoreException(Code)(Java Doc)
public void registerCustomEditor(Class requiredType, PropertyEditor propertyEditor)(Code)(Java Doc)
protected void registerCustomEditors(PropertyEditorRegistry registry)(Code)(Java Doc)
protected void registerDisposableBeanIfNecessary(String beanName, Object bean, RootBeanDefinition mbd)(Code)(Java Doc)
public void registerScope(String scopeName, Scope scope)(Code)(Java Doc)
protected void removeSingleton(String beanName)(Code)(Java Doc)
protected boolean requiresDestruction(Object bean, RootBeanDefinition mbd)(Code)(Java Doc)
protected Class resolveBeanClass(RootBeanDefinition mbd, String beanName) throws CannotLoadBeanClassException(Code)(Java Doc)
public void setBeanClassLoader(ClassLoader beanClassLoader)(Code)(Java Doc)
public void setCacheBeanMetadata(boolean cacheBeanMetadata)(Code)(Java Doc)
public void setParentBeanFactory(BeanFactory parentBeanFactory)(Code)(Java Doc)
protected String transformedBeanName(String name)(Code)(Java Doc)

Fields inherited from org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
final protected Log logger(Code)(Java Doc)

Methods inherited from org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
protected void addSingleton(String beanName, Object singletonObject)(Code)(Java Doc)
protected void afterSingletonCreation(String beanName)(Code)(Java Doc)
protected void beforeSingletonCreation(String beanName)(Code)(Java Doc)
public boolean containsSingleton(String beanName)(Code)(Java Doc)
protected void destroyBean(String beanName, DisposableBean bean)(Code)(Java Doc)
public void destroySingleton(String beanName)(Code)(Java Doc)
public void destroySingletons()(Code)(Java Doc)
protected Set getDependentBeans(String beanName)(Code)(Java Doc)
public Object getSingleton(String beanName)(Code)(Java Doc)
public Object getSingleton(String beanName, ObjectFactory singletonFactory)(Code)(Java Doc)
public int getSingletonCount()(Code)(Java Doc)
final protected Object getSingletonMutex()(Code)(Java Doc)
public String[] getSingletonNames()(Code)(Java Doc)
protected boolean hasDependentBean(String beanName)(Code)(Java Doc)
final public boolean isSingletonCurrentlyInCreation(String beanName)(Code)(Java Doc)
public void registerDependentBean(String beanName, String dependentBeanName)(Code)(Java Doc)
public void registerDisposableBean(String beanName, DisposableBean bean)(Code)(Java Doc)
public void registerSingleton(String beanName, Object singletonObject) throws IllegalStateException(Code)(Java Doc)
protected void removeSingleton(String beanName)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.