Package org.jclouds.reflect
Class Invocation
- java.lang.Object
-
- org.jclouds.reflect.Invocation
-
@Beta public final class Invocation extends Object
Context needed to callInvokable.invoke(Object, Object...)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Invocation
create(com.google.common.reflect.Invokable<?,?> invokable)
invocation without arguments.static Invocation
create(com.google.common.reflect.Invokable<?,?> invokable, List<Object> args)
boolean
equals(Object o)
List<Object>
getArgs()
arguments applied togetInvokable()
duringInvokable.invoke(Object, Object...)
com.google.common.reflect.Invokable<?,?>
getInvokable()
what we can invokeint
hashCode()
String
toString()
-
-
-
Method Detail
-
create
public static Invocation create(com.google.common.reflect.Invokable<?,?> invokable, List<Object> args)
- Parameters:
args
- as these represent parameters, can contain nulls
-
create
public static Invocation create(com.google.common.reflect.Invokable<?,?> invokable)
invocation without arguments.- Throws:
IllegalArgumentException
- if in invokable requires arguments
-
getInvokable
public com.google.common.reflect.Invokable<?,?> getInvokable()
what we can invoke
-
getArgs
public List<Object> getArgs()
arguments applied togetInvokable()
duringInvokable.invoke(Object, Object...)
- Parameters:
args
- as these represent parameters, can contain nulls
-
-