Class PluginWrapper

  • All Implemented Interfaces:

    
    public final class PluginWrapper<TConfig extends Object>
     implements Wrapper
                        

    Represents a plugin wrapper, allowing the plugin module to be invoked as a Wrapper.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final PluginModule<TConfig> getModule() The plugin module instance associated with the wrapper.
      List<UByte> )>invoke(String method, List<UByte> args, List<UByte> env, <Error class: unknown class> invoker) Invokes a method in the Wrapper with the specified options and invoker.
      Result<ByteArray> invoke(String method, ByteArray args, ByteArray env, Invoker invoker) Invokes a method in the Wrapper with the specified options and invoker.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • invoke

         List<UByte> )>invoke(String method, List<UByte> args, List<UByte> env, <Error class: unknown class> invoker)

        Invokes a method in the Wrapper with the specified options and invoker.

        Parameters:
        method - The method to be called on the wrapper.
        args - Arguments for the method, encoded in the MessagePack byte format
        env - Env variables for the wrapper invocation, encoded in the MessagePack byte format
        invoker - The invoker will be used for any sub-invocations that occur.
      • invoke

         Result<ByteArray> invoke(String method, ByteArray args, ByteArray env, Invoker invoker)

        Invokes a method in the Wrapper with the specified options and invoker.

        Parameters:
        method - The method to be called on the wrapper.
        args - Arguments for the method, encoded in the MessagePack byte format
        env - Env variables for the wrapper invocation, encoded in the MessagePack byte format
        invoker - The Invoker will be used for any sub-invocations that occur.