Class DefaultMethodInjector

java.lang.Object
org.panda_lang.utilities.inject.DefaultMethodInjector
All Implemented Interfaces:
MethodInjector

public final class DefaultMethodInjector extends Object implements MethodInjector
  • Method Details

    • invoke

      public <T> T invoke(Object instance, Object... injectorArgs) throws Exception
      Invoke injector with the given instance
      Specified by:
      invoke in interface MethodInjector
      Type Parameters:
      T - type of return value
      Parameters:
      instance - the instance to use
      injectorArgs - arguments for injector
      Returns:
      returned value
      Throws:
      Exception - if anything happens in the evaluated method
    • getMethod

      public Method getMethod()
      Specified by:
      getMethod in interface MethodInjector