Search in sources :

Example 1 with MethodInvokerImpl

use of org.glassfish.flashlight.datatree.impl.MethodInvokerImpl 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;
}
Also used : TreeNode(org.glassfish.flashlight.datatree.TreeNode) MethodInvokerImpl(org.glassfish.flashlight.datatree.impl.MethodInvokerImpl) MethodInvoker(org.glassfish.flashlight.datatree.MethodInvoker)

Aggregations

MethodInvoker (org.glassfish.flashlight.datatree.MethodInvoker)1 TreeNode (org.glassfish.flashlight.datatree.TreeNode)1 MethodInvokerImpl (org.glassfish.flashlight.datatree.impl.MethodInvokerImpl)1