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 Summary
Modifier and TypeMethodDescriptionvoid
dispose()
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 (notnull
)parameterTypes
- given parameter types (notnull
)parameters
- given parameters (notnull
)- Returns:
- invocation result (may be
null
) - Throws:
IOException
- if connection brokenReflectiveOperationException
- if metod execution fails due to reflective error
-
dispose
Disposes this instance and closes connection with it.- Throws:
IOException
-