Lambda expressions are new to Java 8, and their syntax might be baffling if you are not used to them. In his article "Getting Started with Lambda Expressions", Mohan Basavarajappa shows how they can help you write more-concise code that is easier to maintain and might even change the way you structure your programs.
Functional tests are processes designed to confirm that all of the components of a piece of code or software operate correctly. Functional testing focuses on testing the interface of the application to ensure that all user requirements for a properly working application are met.
The conventional wisdom is that threads and tests should not mix. Usually this works out fine because the thing that you really want to test just happens to run inside of a multi-threaded system and can be tested individually without the use of threads. But what if you can’t separate things out, or moreover, what if threading is the point of the code you’re testing?
When developing enterprise applications we are frequently confronted with the challenge of accessing multiple databases. Perhaps our application must archive data into some data warehouse, or maybe it must propagate data to some third party database. With Spring it is easy enough to define a common data source, but once we introduce multiple data sources it gets a bit tricky.
Many compiled languages include tools (sometimes called REPL) for statements interpretation. Using these tools you can test code snippets rapidly without creating project. Take Scala as an example. Compilation can sometimes take a long time, but using repl each statement is executed instantly! That’s great when you are getting started with the language. Each expression gives you returned value and it’s type - that’s very valuable information. In java, instead, we have to create a test or main method which prints results and needs to be recompiled every time you make a change.
Apache Sling is a web framework that uses a Java Content Repository, such as Apache Jackrabbit, to store and manage content. Sling applications use either scripts or Java servlets, selected based on simple name conventions, to process HTTP requests in a RESTful way. The embedded Apache Felix OSGi framework and console provide a dynamic runtime environment, where code and content bundles can be loaded, unloaded and reconfigured at runtime. As the first web framework dedicated to JSR-170 Java Content Repositories, Sling makes it very simple to implement simple applications, while providing an enterprise-level framework for more complex applications.
This post collects together a number of simple performance improvements using apache; it demonstrates using mod_expires, mod_deflate, mod_cache, and mod_headers.
In a nutshell reactive programming is about non-blocking, event-driven applications that scale with a small number of threads with backpressure as a key ingredient that aims to ensure producers do not overwhelm consumers. The Reactive Streams specification (also adopted in Java 9) enables the ability to communicate demand across layers and libraries from different providers. For example an HTTP connection writing to a client can communicate its availability to write all the way upstream to a data repository fetching data from a database so that given a slow HTTP client the repository can slow down too or even pause. For a more extensive introduction to reactive programming check Dave Syer’s multipart series “Notes on Reactive Programming”.
By Guest Blogger Jonathan Giles It's great to be a JavaOne content track reviewer (and for me this year, a track lead), because we get to see all the exciting submissions weeks in advance of their 'unveiling'. Now that anyone can see the excellent sessions that we have coming to the JavaOne Clients and User Interfaces track, it is about time to talk about some of my personal highlights.
Why are filters provided by the JAX-RS framework an important feature when you are developing RESTful web services? In his article on the JAX-RS framework filters, Thamizharasu discusses the four types of filters that are available: server (container) request filters, server response filters, client request filters, and client response filters. He provides code examples for each and explains when to use them.
The Angular 2 Http class does not offer an OPTIONS convenience method out-of-the box. Interestingly, all the major HTTP methods are supported: GET, POST, PUT, delete, patch and head, but the OPTIONS was not implemented. To perform an e.g. POST request, you can use the built-in method.
Are getters and setters always necessary? Sometimes you need to go off the beaten path for more readable, cleaner Java code.
To gather insights on the state of the Java ecosystem today for DZone's Java Ecosystem research guide to be published in September, we spoke with 15 executives who are familiar with the Java ecosystem
Abstractions are enablers of productivity. Understanding what hides behind the abstractions is what separates good engineers from mediocre ones. This post is an example where in-depth knowledge about java.util.HashMap internals allowed us to resolve a nasty concurrency issue.
Reconfirming for the Java community that Oracle “has a very clear plan” for the next Java Enterprise Edition, Thomas Kurian, Oracle’s president of product development, has outlined a number of forthcoming improvements to the foundational application development platform. As customers shift to cloud deployments and adopt microservice application architectures, the Java platform must be modernized to “be viable in the new world” of cloud computing, Kurian said last week in an interview with InfoWorld.
The next version of Java EE will be version 8 and when it is eventually released we will see some very interesting improvements in existing APIs. One of those improvements will be the adaption of HTTP/2 to Servlet technologies.
If you have been reading the NovaTec Blog lately, you already noticed that we started publishing a series of blog posts where we tend to present all the new things around the inspectIT 1.6.9 release. After awesome blogs about our new Configuration interface and the Eclipse Oomph tool, I would like to share some great news to all Mac OSX users our there. The newest inspectIT version is the first one to have everything needed in order to use the leading open-source APM tool on your Mac daily and without any problems.
Welcome to quick and easy CRUD application development with Spring Boot! For this tutorial, nothing is assumed except some basic Java experience. We’ll show you how simple it is to create compliant and flexible REST services using the incredible frameworks Spring and Spring Boot. We’ll go through the how and why of it all, step-by-step so you can comfortably explore further on your own
Android developers can collect device info using these code snippets. Note we translated this from Chinese language. Please correct if wrong.
Beautiful Circular Progress Bar with album art for android
One line of code to implement emoji to your whole Android application.
This Xposed module takes care of always letting the Pokemon Go app think it's in its trusted surrounding. Whatever trust chain is actually established when connecting to the API, it will be replaced with the one expected by the app.
A simple app which allows you to monitor your websites for maximum uptime!
This project benchmark the following DI solutions: Guice - 4.1.0 Genie - 0.2.0-SNAPSHOT Feather - 1.0 Dagger - 1.2.5 Pico - 2.15 Spring - 4.3.2.RELEASE