use of org.glassfish.flashlight.datatree.MethodInvoker in project Payara by payara.
the class TreeNodeFactory method createMethodInvoker.
public static TreeNode createMethodInvoker(String name, Object instance, String category, Method m) {
TreeNode tn = new MethodInvokerImpl();
tn.setName(name);
((MethodInvoker) tn).setInstance(instance);
((MethodInvoker) tn).setMethod(m);
tn.setCategory(category);
tn.setEnabled(true);
return tn;
}
Aggregations