Tags » Java 2

AsyncTask in Java and doing HTTP calls

Most HTTP or REST API calls are done asynchronously. In Java, that means having to make use of the AsyncTask class to execute such calls. You can do a HTTP protocol based call inside of a class that extends the AsyncTask class. 348 more words

Java

Calling Maven Artifact Resolver From Within CDI 2.0

So I’ve been continuing to play with my CDI-and-linking idea, and central to it is the ability to locate CDI “modules” Out There In The World™.   606 more words

Searching for objects using multiple dimensions

Lets take a look at a scenario where you are trying to search for things by their attributes, not their description. They can be users, documents, or any object that could be described by discrete values in multiple dimensions. 1,239 more words

Graph Database

Maven and the Project Formerly Known As Æther

I am hacking and exploring my ideas around CDI and linking and part of whatever that might become will be Maven artifact resolution.

If, like me, you’ve been working with Maven since the 1.0 days (!), you may be amused by the long, tortured path the dependency resolution machine at its core has taken over the years. 660 more words

Java - Static Blocks

Merhabalar, bu yazımda Java‘da yer alan static blocks‘tan kısaca bahsedeceğim. Bu bloklar bir sınıfın static initializations‘ı olarak kullanılır. Static bloktaki kod yalnızca bir kere çalıştırılır ve bu bloklar… 91 more words

Java

Let's make the stack explode in Java!

In one of my lectures about memory management in Java, I was looking for a quick and simple way to demonstrate the influence of local variables on the stack memory usage. 325 more words

Programming Essentials