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”
Java 8 comes with some prominent features like Lambda Expressions, Method References. And Streams are also an important concept that we should comprehend.
This tutorial will help you have a deep view of Java 8 Streams: what they are, ways to create them, how they work with intermediate operations, terminal operation…
[Continue reading…] “Java 8 Streams”
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”
Method References make it clear when referring to the existing method by name.
In the article Lambda Expressions and Functional Interfaces, we use lambda expressions to create anonymous methods and sometimes, calling an existing method is the only thing it does.
When using lambda expression without input arguments or those input arguments doesn’t make sense, we can use Method References to simplify the syntax.
This tutorial introduces four kinds of Method References and how to use them efficiently with some Functional Interfaces.
[Continue reading…] “Java 8 – Method References”
Functional Interfaces is one of the new important things of Java 8. In previous article, we had a little view about common use cases of Lambda Expression including Runnable and ActionListener. They are example of Functional Interfaces.
This tutorial helps you have deeper concept of Functional Interface, then some interfaces which are provided in java.util.function package such as Predicate and Function.
[Continue reading…] “Java 8 – Functional Interfaces”
Lambda expressions are new feature in Java 8. We now can represent one method interface by using an expression.
[Continue reading…] “Java 8 – Lambda Expressions”
Configure Spring Security for Spring MVC web application + SpringBoot
In the tutorial, JavaSampleApproach will show you how to configure Security for SpringMVC web application.
[Continue reading…] “Spring Security – Config Security for Web MVC by Spring Boot”
Abstract factory pattern is a Super-Factory of a group familiar factories. We can use it to expose API for integration code and hidden the logic implementation. Abstract Factory gives us a way to manage and decouple design in case Program has more than one Factory having the same Interface.
The tutorial will guide you a sample for how to program with Abstract Factory Pattern.
[Continue reading…] “Java Design Pattern – Abstract Factory Pattern”
Factory Pattern is a kind of Creation Pattern. Factory Pattern provides an interface for integration and hidden the complex implementation of related components.
The tutorial will help you create a factory pattern based on concept above.
[Continue reading…] “Java Design Pattern – Factory Pattern”