Categories Archives: Java

Multi-Instance Scopes in Guice

Recently I worked on a project with Deanna Surma where we needed better and more flexible scope support from Guice, so we created the project guice-multiscopes. For those unfamiliar with dependency injection, inversion of control, and Guice, I highly recommend you explore the concepts and try it out with your next project.  I’ll continue assuming you have knowledge [...]

Java URI encoder

Recently I discovered that the URL encoder provided in Java is meant for forms and headers, and not actual URLs.   After looking at the URI spec here, I created a quick and compact URI encoder for java: Edit: Updated with char-to-hex speed improvements, fixed < 15 bug, and now encodes unicode chars if > [...]