Interface IInstanceConnection
- All Superinterfaces:
- AutoCloseable,- IConnection,- Invalidatable,- UncaughtExceptionsGenerator
- All Known Subinterfaces:
- IInstanceConnectionDelegate
- All Known Implementing Classes:
- InstanceConnectionDelegateImpl,- MmfInstanceConnection,- RmiInstanceConnectionStub
Represents a connection with instance within a process.
 
 IInstanceConnection instance used by host process is a stub to IInstanceConnectionDelegate running
 withing separate process.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispose()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.IConnectioncloseMethods inherited from interface com._1c.g5.v8.dt.internal.pm.ipc.sync.InvalidatableisValidMethods inherited from interface com._1c.g5.v8.dt.internal.pm.ipc.sync.UncaughtExceptionsGeneratorsetUncaughtExceptionHandler
- 
Method Details- 
invokeMethodObject 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
 
- 
disposeDisposes this instance and closes connection with it.- Throws:
- IOException
 
 
-