org.jclouds.reflect
Class Invocation

java.lang.Object
  extended by org.jclouds.reflect.Invocation

@Beta
public final class Invocation
extends Object

Context needed to call Invokable.invoke(Object, Object...)

Author:
Adrian Cole

Method Summary
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 to getInvokable() during Invokable.invoke(Object, Object...)
 com.google.common.reflect.Invokable<?,?> getInvokable()
          what we can invoke
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 to getInvokable() during Invokable.invoke(Object, Object...)

Parameters:
args - as these represent parameters, can contain nulls

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2013 jclouds. All Rights Reserved.