Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zabawaba99/reflector
Java Reflection Utility
https://github.com/zabawaba99/reflector
Last synced: 1 day ago
JSON representation
Java Reflection Utility
- Host: GitHub
- URL: https://github.com/zabawaba99/reflector
- Owner: zabawaba99
- License: mit
- Created: 2015-01-23T01:46:01.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-16T02:05:30.000Z (over 8 years ago)
- Last Synced: 2024-09-30T09:21:19.053Z (about 1 month ago)
- Language: Java
- Homepage:
- Size: 559 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Reflector
---
[![Build Status](https://travis-ci.org/zabawaba99/reflector.svg?branch=master)](https://travis-ci.org/zabawaba99/reflector)
[![Coverage Status](https://coveralls.io/repos/zabawaba99/reflector/badge.svg?branch=master)](https://coveralls.io/r/zabawaba99/reflector?branch=master)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.zabawaba99/reflector/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/com.github.zabawaba99/reflector)---
Making reflective programming simpler.
##### Under Development
The API may or may not change radically within the next upcoming weeks.## Usage
### With Maven
Add the snapshot repository and the dependency to you pom.xml file
```xml
sonatype-snapshot
https://oss.sonatype.org/content/groups/public
true
com.zabawaba99
reflector
0.2.0-SNAPSHOT
```
### Gradle
```xml
compile 'com.github.zabawaba99:reflector:0.2.0'
```### Manual install
You can go to the [sonatype repository](https://oss.sonatype.org/content/groups/public/com/github/zabawaba99/reflector/) and download the version of reflector that you're interested in using.
---
After adding Reflector to your project, just import the package
and start using.```java
package com.exampleimport com.zabawaba.reflector;
public static void main(String[] args){
SomeObject obj = new SomeObject();
Object fieldValue = Fields.forObj(obj).get("foo").getValue();
// ... do something with the field's value
}
```## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b new-feature`)
3. Commit your changes (`git commit -am 'Some cool reflection'`)
4. Push to the branch (`git push origin new-feature`)
5. Create new Pull Request