li.rudin.arduino.managed.Managed Maven / Gradle / Ivy
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