Guide to Kotlin @JvmField
1. Overview In this tutorial, we’re going to explore the @JvmField annotation out of Kotlin. Kotlin has its approach to classes and properties, which differs from the approach used in Java. The...
View ArticleQuerying Couchbase with N1QL
1. Overview In this article, we’ll be looking at querying a Couchbase Server with N1QL. In a simplified way, this is SQL for NoSQL databases – with the goal of making the transition from...
View ArticleSchedulers in RxJava
1. Overview In this article, we’re going to focus on different types of Schedulers that we’re going to use in writing multithreading programs based on RxJava Observable’s subscribeOn and observeOn...
View ArticleJava Weekly, Issue 196
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Java 9 and IntelliJ IDEA [blog.jetbrains.com] It’s nice to see that tools are adapting to new releases super...
View ArticleApache Commons Collections Bag
1. Introduction In this quick article, we’ll focus on how to use the Apache’s Bag collection. 2. Maven Dependency Before we start, we need to import the latest dependencies from Maven Central:...
View ArticleIntroduction to Animal Sniffer Maven Plugin
1. Introduction While working in Java, there are times when we need to use multiple language versions at the same time. It’s common to need our Java program to be compile-time compatible with one Java...
View ArticleIntroduction to JGraphT
1. Overview Most of the time, when we’re implementing graph-based algorithms, we also need to implement some utility functions. JGraphT is an open-source Java class library which not only provides us...
View ArticleValidating Container Elements with Bean Validation 2.0
1. Overview The 2.0 Version of the Java Bean Validation specification adds several new features, among which is the possibility to validate elements of containers. This new functionality takes...
View ArticleCustom JUnit 4 Test Runners
1. Overview In this quick article, we’re going to focus on how to run JUnit tests using custom test runners. Simply put, in order to specify the custom runner, we’ll need to use the @RunWith...
View ArticleIntroduction to Atomix
1. Overview Most distributed applications require some stateful component to be consistent and fault-tolerant. Atomix is an embeddable library helping in achieving fault-tolerance and consistency for...
View ArticleJava Weekly, Issue 197
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Spring Framework 5.0 goes GA [spring.io] >> Reacting to Spring Framework 5.0 [content.pivotal.io] Spring...
View ArticleMocking Exception Throwing using Mockito
1. Overview In this quick tutorial – we’ll focus on how to configure a method call to throw an exception with Mockito. For more information on the library, also check out our Mockito series. Here’s a...
View ArticleIntroduction to Conflict-Free Replicated Data Types
1. Overview In this article, we’ll look at conflict-free replicated data types (CRDT) and how to work with them in Java. For our examples, we’ll use implementations from the wurmloch-crdt library....
View ArticleA Guide to Deeplearning4j
1. Introduction In this article, we’ll create a simple neural network with the deeplearning4j (dl4j) library – a modern and powerful tool for machine learning. Before we get started, not that this...
View ArticleIntroduction To Docx4J
1. Overview In this article, we’ll focus on creating a .docx document using docx4j library. Docx4j is a Java library used for creating and manipulating Office OpenXML files – which means it can only...
View ArticleIntroduction to ORMLite
1. Overview ORMLite is a lightweight ORM library for Java applications. It provides standard features of an ORM tool for the most common use cases, without the added complexity and overhead of other...
View ArticleComparing Spring AOP and AspectJ
1. Introduction There are multiple available AOP libraries today, and these need to be able to answer a number of questions: Is it compatible with my existing or new application? Where can I implement...
View ArticleJIRA REST API Integration
1. Introduction In this article, we’ll have a quick look at how to integrate with the JIRA using its REST API. 2. Maven Dependency The required artifacts can be found in Atlassian’s public Maven...
View ArticleExploring the New Spring Cloud Gateway
1. Overview In this article, we’ll explore the main features of the Spring Cloud Gateway project, a new API based on Spring 5, Spring Boot 2 and Project Reactor. The tool provides out-of-the-box...
View ArticleProcessEngine Configuration in Activiti
1. Overview In our previous Activiti with Java intro article, we saw the importance of the ProcessEngine, and created one via the default static API provided by the framework. Beyond the default,...
View Article