Brooklyn

brooklyn.util.task
[Java] Class ExecutionUtils

java.lang.Object
  brooklyn.util.task.ExecutionUtils

public class ExecutionUtils

Method Summary
static java.lang.Object invoke(java.lang.Object callable, java.lang.Object... args)

Attempts to run/call the given object, with the given arguments if possible, preserving the return value if there is one (null otherwise); throws exception if the callable is a non-null object which cannot be invoked (not a callable or runnable)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

invoke

public static java.lang.Object invoke(java.lang.Object callable, java.lang.Object... args)
Attempts to run/call the given object, with the given arguments if possible, preserving the return value if there is one (null otherwise); throws exception if the callable is a non-null object which cannot be invoked (not a callable or runnable)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.