All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dooapp.gaedo.properties.FieldBackedPropertyProvider Maven / Gradle / Ivy

package com.dooapp.gaedo.properties;

import java.lang.reflect.Field;



public class FieldBackedPropertyProvider implements PropertyProvider {
	@Override
	public Property[] get(Class containedClass) {
		Field[] source = containedClass.getDeclaredFields();
		Property[] returned = new Property[source.length];
		for(int index=0; index < source.length; index++) {
			returned[index] = new PropertyField(source[index]);
		}
		return returned;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy