org.springframework.beans.factory.config

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.5 » org.springframework.beans.factory.config 
org.springframework.beans.factory.config
SPI interfaces and configuration-related convenience classes for bean factories.
Java Source File NameTypeComment
AbstractFactoryBean.javaClass Simple template superclass for FactoryBean implementations that creates a singleton or a prototype object, depending on a flag.

If the "singleton" flag is true (the default), this class will create the object that it creates exactly once on initialization and subsequently return said singleton instance on all calls to the AbstractFactoryBean.getObject() method.

Else, this class will create a new instance every time the AbstractFactoryBean.getObject() method is invoked.

AutowireCapableBeanFactory.javaInterface Extension of the org.springframework.beans.factory.BeanFactory interface to be implemented by bean factories that are capable of autowiring, provided that they want to expose this functionality for existing bean instances.

This subinterface of BeanFactory is not meant to be used in normal application code: stick to org.springframework.beans.factory.BeanFactory or org.springframework.beans.factory.ListableBeanFactory for typical use cases.

Integration code for other frameworks can leverage this interface to wire and populate existing bean instances that Spring does not control the lifecycle of.

BeanDefinition.javaInterface A BeanDefinition describes a bean instance, which has property values, constructor argument values, and further information supplied by concrete implementations.
BeanDefinitionHolder.javaClass Holder for a BeanDefinition with name and aliases. Can be registered as a placeholder for an inner bean.

Can also be used for programmatic registration of inner bean definitions.

BeanDefinitionVisitor.javaClass Visitor class for traversing BeanDefinition objects, in particular the property values and constructor argument values contained in them, resolving bean metadata values.
BeanFactoryPostProcessor.javaInterface Allows for custom modification of an application context's bean definitions, adapting the bean property values of the context's underlying bean factory.
BeanPostProcessor.javaInterface Factory hook that allows for custom modification of new bean instances, e.g.
BeanReference.javaInterface Interface that exposes a reference to a bean name in an abstract fashion.
BeanReferenceFactoryBean.javaClass FactoryBean that exposes an arbitrary target bean under a different name.
CommonsLogFactoryBean.javaClass Factory bean for commons-logging org.apache.commons.logging.Log instances.

Useful for sharing Log instances among multiple beans instead of using one Log instance per class name, e.g.

ConfigurableBeanFactory.javaInterface Configuration interface to be implemented by most bean factories.
ConfigurableListableBeanFactory.javaInterface Configuration interface to be implemented by most listable bean factories. In addition to ConfigurableBeanFactory , it provides facilities to analyze and modify bean definitions, and to pre-instantiate singletons.

This subinterface of org.springframework.beans.factory.BeanFactory is not meant to be used in normal application code: Stick to org.springframework.beans.factory.BeanFactory or org.springframework.beans.factory.ListableBeanFactory for typical use cases.

ConstructorArgumentValues.javaClass Holder for constructor argument values, typically as part of a bean definition.
CustomEditorConfigurer.javaClassBeanFactoryPostProcessor implementation that allows for convenient registration of custom PropertyEditor property editors .

As of Spring 2.0, the recommended usage is to use custom PropertyEditorRegistrar implementations that in turn register any desired editors on a given org.springframework.beans.PropertyEditorRegistry registry . Each PropertyEditorRegistrar can register any number of custom editors.

 <bean id="customEditorConfigurer" class="org.springframework.beans.factory.config.CustomEditorConfigurer">
 <property name="propertyEditorRegistrars">
 <list>
 <bean class="mypackage.MyCustomDateEditorRegistrar"/>
 <bean class="mypackage.MyObjectEditorRegistrar"/>
 </list>
 </property>
 </bean>

Alternative configuration example with custom editor instances, assuming inner beans for PropertyEditor instances:

 <bean id="customEditorConfigurer" class="org.springframework.beans.factory.config.CustomEditorConfigurer">
 <property name="customEditors">
 <map>
 <entry key="java.util.Date">
 <bean class="mypackage.MyCustomDateEditor"/>
 </entry>
 <entry key="mypackage.MyObject">
 <bean id="myEditor" class="mypackage.MyObjectEditor">
 <property name="myParam"><value>myValue</value></property>
 </bean>
 </entry>
 </map>
 </property>
 </bean>

Also supports "java.lang.String[]"-style array class names and primitive class names (e.g.

CustomScopeConfigurer.javaClass Simple BeanFactoryPostProcessor implementation that registers custom Scope Scope(s) with the containing ConfigurableBeanFactory .
DependencyDescriptor.javaClass Descriptor for a specific dependency that is about to be injected.
DestructionAwareBeanPostProcessor.javaInterface Subinterface of BeanPostProcessor that adds a before-destruction callback.
FieldRetrievingFactoryBean.javaClass FactoryBean which retrieves a static or non-static field value.

Typically used for retrieving public static final constants.

InstantiationAwareBeanPostProcessor.javaInterface Subinterface of BeanPostProcessor that adds a before-instantiation callback, and a callback after instantiation but before explicit properties are set or autowiring occurs.

Typically used to suppress default instantiation for specific target beans, for example to create proxies with special TargetSources (pooling targets, lazily initializing targets, etc), or to implement additional injection strategies such as field injection.

NOTE: This interface is a special purpose interface, mainly for internal use within the framework.

InstantiationAwareBeanPostProcessorAdapter.javaClass Adapter that implements all methods on SmartInstantiationAwareBeanPostProcessor as no-ops, which will not change normal processing of each bean instantiated by the container.
ListFactoryBean.javaClass Simple factory for shared List instances.
MapFactoryBean.javaClass Simple factory for shared Map instances.
MethodInvokingFactoryBean.javaClass FactoryBean which returns a value which is the result of a static or instance method invocation.
ObjectFactoryCreatingFactoryBean.javaClass A org.springframework.beans.factory.FactoryBean implementation that returns a value which is an org.springframework.beans.factory.ObjectFactory that in turn returns a bean sourced from a org.springframework.beans.factory.BeanFactory .

As such, this may be used to avoid having a client object directly calling org.springframework.beans.factory.BeanFactory.getBean(String) to get a (typically prototype) bean from a org.springframework.beans.factory.BeanFactory , which would be a violation of the inversion of control principle.

PreferencesPlaceholderConfigurer.javaClass Subclass of PropertyPlaceholderConfigurer that supports JDK 1.4's Preferences API (java.util.prefs).

Tries to resolve placeholders as keys first in the user preferences, then in the system preferences, then in this configurer's properties. Thus, behaves like PropertyPlaceholderConfigurer if no corresponding preferences defined.

Supports custom paths for the system and user preferences trees.

PropertiesFactoryBean.javaClass Allows for making a properties file from a classpath location available as Properties instance in a bean factory.
PropertyOverrideConfigurer.javaClass A property resource configurer that overrides bean property values in an application context definition.
PropertyPathFactoryBean.javaClassFactoryBean that evaluates a property path on a given target object.
PropertyPlaceholderConfigurer.javaClass A property resource configurer that resolves placeholders in bean property values of context definitions.
PropertyResourceConfigurer.javaClass Allows for configuration of individual bean property values from a property resource, i.e.
RuntimeBeanNameReference.javaClass Immutable placeholder class used for a property value object when it's a reference to another bean name in the factory, to be resolved at runtime.
RuntimeBeanReference.javaClass Immutable placeholder class used for a property value object when it's a reference to another bean in the factory, to be resolved at runtime.
Scope.javaInterface Strategy interface used by a ConfigurableBeanFactory , representing a target scope to hold bean instances in. This allows for extending the BeanFactory's standard scopes ConfigurableBeanFactory.SCOPE_SINGLETON "singleton" and ConfigurableBeanFactory.SCOPE_PROTOTYPE "prototype" with custom further scopes, registered for a ConfigurableBeanFactory.registerScope(StringScope) specific key .

org.springframework.context.ApplicationContext implementations such as a org.springframework.web.context.WebApplicationContext may register additional standard scopes specific to their environment, e.g.

ServiceLocatorFactoryBean.javaClass A org.springframework.beans.factory.FactoryBean implementation that takes an interface which must have one or more methods with the signatures MyType xxx() or MyType xxx(MyIdType id) (typically, MyService getService() or MyService getService(String id)) and creates a dynamic proxy which implements that interface, delegating to an underlying org.springframework.beans.factory.BeanFactory .

Such service locators permit the decoupling of calling code from the org.springframework.beans.factory.BeanFactory API, by using an appropriate custom locator interface.

SetFactoryBean.javaClass Simple factory for shared Set instances.
SingletonBeanRegistry.javaInterface Interface that defines a registry for shared bean instances.
SmartInstantiationAwareBeanPostProcessor.javaInterface Extension of the InstantiationAwareBeanPostProcessor interface, adding a callback for predicting the eventual type of a processed bean.

NOTE: This interface is a special purpose interface, mainly for internal use within the framework.

TypedStringValue.javaClass Holder for a typed String value.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.