Never miss a beat

Join my newsletter.

Tag: reflection

Intro to Reflection in Java

Published: 9/16/2015

Recently, I began exploring an interesting idea I had – creating a RESTful framework built on top of Spark. Now, Spark is naturally restful, but I basically want the user to be able to define an object, flag it as a resource, and compile their code. They should then have GET , POST , PUT , and DELETE verbs available on that object. Sounds relatively trivial right? There are actually several ways to do this, but the simplest way (once I was able to wrap my head around it) involves…