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

com.nh.micro.dao.mapper.MicroInjectDaoPlugin Maven / Gradle / Ivy

package com.nh.micro.dao.mapper;


import java.lang.reflect.Field;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;

import com.nh.micro.rule.engine.core.IGroovyLoadPlugin;
import groovy.lang.GroovyObject;


/**
 * 
 * @author ninghao
 *
 */
public class MicroInjectDaoPlugin implements IGroovyLoadPlugin {

	@Override
	public GroovyObject execPlugIn(String name, GroovyObject groovyObject, GroovyObject proxyObject) throws Exception {
		Field[] fields=groovyObject.getClass().getDeclaredFields();
		int size=fields.length;
		for(int i=0;i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy