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

li.rudin.arduino.managed.Managed Maven / Gradle / Ivy

There is a newer version: 2.12
Show newest version
package li.rudin.arduino.managed;

import li.rudin.arduino.api.Arduino;
import net.sf.cglib.proxy.Enhancer;

public class Managed
{
	/**
	 * Creates a new managed device instance
	 * @param type
	 * @param arduino
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public static  T create(Class type, Arduino arduino)
	{
		return (T) Enhancer.create(type, new ManagedInterceptor(type, arduino));
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy