Kayıtlar

Mayıs, 2019 tarihine ait yayınlar gösteriliyor

Dependency Injection In Java and CDI

Dependency injection(DI) is one of the key techniques that enables a class or module to be injected into another, which also enables us to apply the principal of seperation of concerns via enabling a way of entity association and making wiring easy.

Along with Java EE 5, dependency injection was made of a part of the specification with JSR 250 (Common Annotations). For basic usages of injection, it has been a good start for Java platform especially with the annotations; @ManagedBean and @Resource.

Since Java EE 6, JSR 330 (Dependency Injection for Java) was introduced and the frequently used annotations like @Inject and @Named were made available. And ultimately, Contexts and Dependency Injection was also introduced with Java EE 6 which is built on top of JSR 330. Comparing to DI, CDI additionally provides an easy to use event mechanism, decorators and interceptors to add functionality to beans.

Since Java EE 5 with the EJB 3.0 specification, Java EE also provides injection for EJBs whic…

Java EE 8

Resim
In this article, we will focus on the following advances upcoming within Java EE 8.
For each item, i will try to write up in a seperate article or series of articles.

Servlet 4.0CDI 2.0JPA 2.2JSF 2.3JAX-RS 2.1MicroprofileBean Validation 2.0JSON Processing 1.1 (JSON-P)JSON Binding 1.0 (JSON-B)Java EE Security


MicroProfile

Resim
Eclipse MicroProfile provides a way of developing cloud-native Java microservices with the usage of a small subset of Java EE specifications.

These specifications are commonly; JAX-RS, CDI and JSON-P.
A MicroProfile microservice can be run on a supported container, such as TomEE and WildFly Swarm.

MicroProfile By Versions MicroProfile 1.0 - 2016
MicroProfile 1.1 - 2017
MicroProfile 1.2 - 2017 - aligned EE7
MicroProfile 2.0 - 2018 - aligned EE8
MicroProfile 3.0 - 2019 - aligned EE8


Referenceshttps://microprofile.io/
https://start.microprofile.io/
https://kodnito.com/category/tomee/
https://www.baeldung.com/eclipse-microprofile
https://github.com/eclipse/microprofile/releases/
https://openliberty.io/docs/ref/general/#microprofile.html
https://www.oracle.com/a/ocom/docs/corporate/java-magazine-nov-dec-2017.pdf
https://developer.ibm.com/articles/jakarta-ee-and-microprofile-getting-started/