In this article you will learn how compile Java sources on runtime using the JSR 199 API.
Spring is most popular Java framework and has the Spring Data plug-in, its goal is do a high level layer among Java application and information center such SQL, NOSQL, bigdata, etc. Know more how it works Spring Data on Cassandra.
Proof that an Architecture of which no greater can be conceived, must include impementation.
How to build a JavaFX visualization of data that must loaded dynamically while mitigating the hit to user experience. This tutorial will show you how to visually acknowledge the user with some sort of animation to let him know... "Hey I'm still here don't worry!" The following pattern is how you can easily accomplish this either from a straight Swing interop or embedded from a NetBeans Platform application.
How to do Test Driven Development (TDD) with JavaFX using Model-View-Presenter pattern? In this installment of Effective JavaFX Architecture, I address this question with all the details and working code samples.
Have you experienced Scrum? I have.
In the previous installment of Effective Architecture, I covered TDD with Model-View-Presenter. However the code I presented had synchronous server calls. In JavaFX (like Swing), the UI code runs in the Event Dispatch Thread (EDT). It is unwise to block the EDT. Hence it is encouraged to execute all server calls on a separate thread.
Swing provides SwingWorker to execute tasks off the...
What are the cost vs. benefits of creating interfaces and how should they be balanced?
Acteur is a pattern for pipelining work - a little DI functional goodness for Java. I might have been speaking Swahili when I wrote about Acteur last month. So here's a simple explanation of the design pattern behind it, with a simple sample project.
How to use JDK 7's AutoCloseable for more than just I/O.
Don't Repeat Yourself! Instead of hacking these lines again and again, just include this dependency and you're done!
Need to use a generic Range class but don't want to include rather huge all-inclusive libraries? Here is your solution: Simply add eu.headcrashing.treasure-chest:RangeClass as a dependency to your Maven POM descriptor!
The search algorithm is used for finding an item within a collection of items. String searching algorithm is a category of the search algorithm. The main idea of string searching algorithm is to find text pattern in a string. There are many techniques used to solve this. This second entry will be about 'Knuth-Morris-Pratt (KMP)' algorithm and how you can apply it on a simple Java code.
You want JAXB to unmarshal singletons? You already spent lots of time coding rather complex workarounds applying XmlAdapters and afterUnmarshal callbacks? The solution is astonishingly simple!
This article presents a tutorial for implementing task-focused development using NetBeans IDE with the NBTaskFocus project. Mylyn was the popular project providing task-focused interface for Eclipse and got included in the main Eclipse distribution. These features were in a lot of demand for NetBeans IDE and NBTaskFocus project attempts to provide some of the features in demand. We can now work on our tasks in a better way in NetBeans IDE also using the NBTaskFocus modules.
Here are my slides on my "Remoting Retrospective" presentation at JavaOne 2012.
Enterprise Content Management (ECM) repositories often have a lot of types defined, sometimes hundreds in extreme cases. This means that there needs to be a way to organize and retrieve them in a scalable fashion. Some repository designs treat these type collections as a large flat list, while others treat them as a hierarchy. This article based on a portion of chapter 4 from CMIS and Apache Chemistry in Action covers type collections and how to navigate, retrieve, and examine them with two code examples showing basic techniques for each. The code examples assume the reader has the Apache Chemistry Workbench running, and that they have access to a public or local CMIS repository. If you would like step-by-step instructions for setting up these prerequisite tools please read Chapter 1 of the book which is a free download from Manning available at the book link. All of the code in this article is written in Groovy and can be executed exactly as shown in the Console window of the Apache Chemistry Workbench.
In 1996, a group that I was working with devised a development process which we called Defect Driven Design, otherwise known as D3 (D-Cubed). We were a bit disappointed by not surprised that D3 never really caught on but just recently I saw a glimmer of hope for a revival.
Sometimes it makes sense to wrap a single code line into a class. An example is implementing the Range pattern.
The www.abelski.com web site offers free (for personal and academic usage) courses about various topics in software development. The site focuses on Java technologies.