Spring Framework provides Spring Factory Method mechanics to create Beans from static(non-static) method of a Factory Class in XML config files. In the tutorial, JavaSampleApproach will introduce Spring Factory Method with sample codes.
– How to inject Collection in Spring
– Inject Properties from Properties File using Spring Environment
Continue reading “How to use Spring Factory Method to create Spring Bean”
Spring Framework new release 4.3 make some Web Improvements. Among that, it simplifies way to implement Bean Scopes (Request, Session and Application scopes) using Annotation: @RequestScope | @SessionScope | @ApplicationScope. They are only valid in the context of a web-aware Application.
– Spring Bean Scope – Singleton and Prototype
– Spring Bean Scope using Annotation – Singleton, Prototype, Request, Session, Global Session, Application
Continue reading “Spring Bean Scope Annotation: @RequestScope | @SessionScope | @ApplicationScope”
Spring Expression Language (SpEL) is a powerful expression language that supports querying and manipulating an object graph at runtime.
This tutorial shows various examples of ways to use SpEL expressions with XML and annotation based configuration. We also know how to evaluate an expression using SpEL classes and interfaces.
Continue reading “Spring Expression Language SpEL”
@Resource Annotation is used to indicate a reference to a resource, it is considered an alternative to @Autowired which is an Spring standard. Similar to Java EE 5, we can use @Resource Annotation with field injection or setter method.
This tutorial will cover those kinds of injection which will be used for matching by Name, Type or Qualifier.
Continue reading “@Resource Annotation in Spring”
Callable is a Java interface that is an useful methodology for control multi-threading returns on concurrency development.
The tutorial will guide you to build a concurrency program with ThreadPoolTaskExecutor of Spring Framework and Callable interface.
Continue reading “Spring ThreadPoolTaskExecutor with Callable interface for concurrency programming”