Back to project page andro_auto_framework.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCT...
If you think the Android project andro_auto_framework listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.imaginea.botbot.keywords; // w ww. j ava 2s . c om import java.util.Arrays; import org.imaginea.botbot.common.Command; import org.imaginea.botbot.common.Prefrences; public class DynamicExecution extends BaseKeywordDefinitions{ private Prefrences prefrences; private Object context; public DynamicExecution(Prefrences prefrences){ this.prefrences=prefrences; this.context=prefrences.getExecutionContext(); collectSupportedMethods(context.getClass()); } @Override public boolean methodSUpported(Command command) { if (methodMap.containsKey(command.getName())) { return true; } return false; } @Override public void execute(Command command) { invoker(context, command.getName(), Arrays.asList(command.getParameters())); } }