- Inversion of Control
- Referring a bean from other bean
- Span bean definitions across multiple files
- Get Bean by name
- Access bean with multiple names
- Aliasing a bean
- Constructor based dependency injection
- Inject other beans in constructor arguments
- Injecting properties
- Circular Dependency problem
- Instantiating beans with static factory method
- pass arguments to static factory method
- Instantiate bean using an instance factory method
- pass arguments to instance factory method
- PropertyPlaceholderConfigurer: load property file from class path
- PropertyPlaceholderConfigurer: Load multiple property files
- Specifying the properties using PropertyPlaceholderConfigurer
- idref: Validate bean existance
- Colloborators: Dependency injection using ref element
- Inner beans
- Defining collections
- Inject Properties instance
- Inject List
- Inject set
- Inject Map
- Inject list of beans
- Inject set of beans
- Inject map of beans
- Inject map of beans (key and value both are beans)
- Collections merging
- Assign null values to properties
- p-namespace
- Inject bean using p-namespace
- Working with c-namespace
- Inject bean as constructor argument using c name space
- Set nested property names
- depends-on example
- Lazy initialization of beans
- Autowiring modes
- Autowiring by name
- Autowiring by type
- Autowiring by ‘constructor’
- Resolve autowiring conflict using primary attribute
- Bean Scopes
- Singleton scope
- Prototype Scope
- Method Injection
- Singleton beans with prototype-bean dependencies
- Define Custom scopes
- InitializingBean and DisposableBean example
- default-init-method & default-destroy-method Example
- Bean definition Inheritance
- BeanPostProcessor example
- Configure multiple BeanPostProcessors
- Annotations: Hello World Application
- @Required Annotation example
- @Autowired Annotation example
- Apply Autowired on constructor arguments
- Apply @Autowired annotation on methods with arbitrary names
- Apply @ Autowired annotation on fields
- @Autowired injecting collection of beans
- @Autowired: Inject beans into map
- Points to consider while autowiring
- Autowiring interfaces
- @Configuration : Removing xml based configuration
- @Primary annotation example
- Tune autowiring with qualifiers
- Applying @Qualifier on collections
- Implement custom qualifiers
- Resource annotation example
- @PostConstruct and @PreDestroy example
- Stereotypes
- @Inject annotation example
- @Named annotation example
This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
Tuesday, 24 January 2017
Spring Core Tutorial
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment