Skip directly to content

Loading files at runtime in Java

on Fri, 02/24/2012 - 10:30am

Sometimes properties files, configuration files, etc. need to be loaded at runtime. I found that using relative paths in a Java project can be frustrating (or impossible) and absolute paths should obviously be avoided for portability. I've had success with the approach of putting the file on the classpath and using a ClassLoader to load these resources at runtime. Here's an example to illustrate:

Action Script 3 is greater than the Flash Player

on Mon, 10/17/2011 - 12:22pm

Lately my attention has been grabbed by the email ads from Adobe about writing apps for iOS, Android and Blackberry mobile devices using the same AS3 codebase. I enjoy developing in AS3 and would love to get my hands on Flash Builder 4.5 and start hacking away at mobile apps. The problem as I see it is that the AS3 API is limited by the shortcomings of the Flash Player.

APIUS 0.2.3 released

on Sun, 08/14/2011 - 10:07pm

A number of changes were made to the identity service which is the first fully functional service in the APIUS framework. The focus of the identity service for the moment is still managing sessions on a remote session provisioner via a uniform RESTful interface, and the first concrete implementation is using OpenAM as the session provisioner.

There was some code clean-up including consolidation

An API for the REST of us

on Fri, 07/08/2011 - 11:26pm

I haven't posted much lately. Too busy learning new frameworks. I mentioned in a previous blog post that I would share some code that illustrates how to use OpenAM's REST interface to protect a resource. I originally planned to use a Servlet Filter in a J2EE context but thereafter I started drinking the Restlet Kool Aid and now I'm hooked. On top of that, Robert C. Martin's book Clean Code has

RESTful Services: Choosing the right HTTP method

on Fri, 04/01/2011 - 9:17pm

There are a number of different HTTP methods, but the four that will likely be used the most in designing RESTful services are:

PUT

GET

POST

DELETE

It's easy to assume that each of these methods maps cleanly (one-to-one) to the CRUD operations common in programming (Create, Retrieve, Update, Delete) but that's not always the case for reasons that become clear when studying the HTTP RFC.

A

Pages