Interface IInstanceConnectionDelegate
- All Superinterfaces:
AutoCloseable,IConnection,IInstanceConnection,Invalidatable,UncaughtExceptionsGenerator
- All Known Implementing Classes:
InstanceConnectionDelegateImpl
Represents an instance to which inter-process communication mechanism's separate process side delegates requests
to instance, received from the host. Because this interface's methods do not send or receive data,
overriden methods do not throw
IOException.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()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.default booleanisValid()Returns if this instance is not closed.default voidMethods inherited from interface com._1c.g5.v8.dt.internal.pm.connection.IInstanceConnection
dispose
-
Method Details
-
setUncaughtExceptionHandler
SetsThread.UncaughtExceptionHandler. Always throwsUnsupportedOperationException.- Specified by:
setUncaughtExceptionHandlerin interfaceUncaughtExceptionsGenerator- Parameters:
handler- givenThread.UncaughtExceptionHandler(notnull)
-
isValid
default boolean isValid()Description copied from interface:InvalidatableReturns if this instance is not closed.- Specified by:
isValidin interfaceInvalidatable- Returns:
true, ifAutoCloseable.close()was not called,falseotherwise
-
close
default void close()Description copied from interface:IConnection- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceIConnection
-
invokeMethod
Object invokeMethod(String methodName, Class<?>[] parameterTypes, Object[] parameters) throws ReflectiveOperationException Description copied from interface:IInstanceConnectionInvokes method with given name and parameters types on instance with given parameters and returns it's result.- Specified by:
invokeMethodin interfaceIInstanceConnection- Parameters:
methodName- given method name (notnull)parameterTypes- given parameter types (notnull)parameters- given parameters (notnull)- Returns:
- invocation result (may be
null) - Throws:
ReflectiveOperationException- if metod execution fails due to reflective error
-