williammartin / illuminator

Reflection library for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Illuminator Build Status

Join the chat at https://gitter.im/williammartin/illuminator Illuminator is a simple Reflection library for Java. It is both an attempt to avoid the verboseness of the standard Reflection library and an exercise in learning for the author.

Getting started with Illuminator

Illuminator is in an extremely early form right now. To get ahold of, and to test the code please follow these instructions.

First, clone this repository:

git clone https://github.com/williammartin/illuminator.git

Then navigate into the illuminator project directory. Your next steps depend on whether you choose to run locally or in a VM.

Running Locally

Requirements:

  • Java 8
  • Maven

Run:

mvn test

Using Vagrant

Requirements:

  • Vagrant
  • VirtualBox

Run:

vagrant up
vagrant ssh
mvn test

How do I use it?

Right now, Illuminator is in very early stages and doesn't support much functionality. Here is an example of how you might create an instance of a Class.

import uk.me.williammartin.illuminator.Illuminator;
    
SomeClass someObject = Illuminator
                        .illuminate(SomeClass.class)
                        .construct();

You can also pass arguments to the constructor as simply as:

import uk.me.williammartin.illuminator.Illuminator;
    
SomeClass someObject = Illuminator
                        .illuminate(SomeClass.class)
                        .construct("Hello", "World!");

Good luck!

About

Reflection library for Java

License:Apache License 2.0


Languages

Language:Java 81.4%Language:Shell 18.6%