Class Invocation

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

@Beta public final class Invocation extends Object
Context needed to call Invokable.invoke(Object, Object...)
  • Method Details

    • 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