Interface IInstanceConnection

All Superinterfaces:
AutoCloseable, IConnection, Invalidatable, UncaughtExceptionsGenerator
All Known Subinterfaces:
IInstanceConnectionDelegate
All Known Implementing Classes:
InstanceConnectionDelegateImpl, MmfInstanceConnection, RmiInstanceConnectionStub

public interface IInstanceConnection extends IConnection
Represents a connection with instance within a process.

IInstanceConnection instance used by host process is a stub to IInstanceConnectionDelegate running withing separate process.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Disposes this instance and closes connection with it.
    invokeMethod(String methodName, Class<?>[] parameterTypes, Object[] parameters)
    Invokes method with given name and parameters types on instance with given parameters and returns it's result.

    Methods inherited from interface com._1c.g5.v8.dt.internal.pm.connection.IConnection

    close

    Methods inherited from interface com._1c.g5.v8.dt.internal.pm.ipc.sync.Invalidatable

    isValid

    Methods inherited from interface com._1c.g5.v8.dt.internal.pm.ipc.sync.UncaughtExceptionsGenerator

    setUncaughtExceptionHandler
  • Method Details

    • invokeMethod

      Object invokeMethod(String methodName, Class<?>[] parameterTypes, Object[] parameters) throws IOException, ReflectiveOperationException
      Invokes method with given name and parameters types on instance with given parameters and returns it's result.
      Parameters:
      methodName - given method name (not null)
      parameterTypes - given parameter types (not null)
      parameters - given parameters (not null)
      Returns:
      invocation result (may be null)
      Throws:
      IOException - if connection broken
      ReflectiveOperationException - if metod execution fails due to reflective error
    • dispose

      void dispose() throws IOException
      Disposes this instance and closes connection with it.
      Throws:
      IOException