Class DefaultServiceWrapper<T>
java.lang.Object
com._1c.g5.v8.dt.internal.pm.wrappers.AbstractServiceWrapper<T>
com._1c.g5.v8.dt.internal.pm.wrappers.DefaultServiceWrapper<T>
- All Implemented Interfaces:
IServiceWrapper<T>
A service wrapper for non-singleton services.
-
Field Summary
Fields inherited from class com._1c.g5.v8.dt.internal.pm.wrappers.AbstractServiceWrapper
serviceBinder
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultServiceWrapper
(ServiceBinder<T> serviceBinder) Inherits super constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected IInstanceConnection
getInstanceConnection
(IProcessConnection processConnection) AbstractServiceWrapper.getInstanceConnection(IProcessConnection)
method implementation.Methods inherited from class com._1c.g5.v8.dt.internal.pm.wrappers.AbstractServiceWrapper
createProxy, dispose
-
Constructor Details
-
DefaultServiceWrapper
Inherits super constructor.- Parameters:
serviceBinder
-
-
-
Method Details
-
getInstanceConnection
protected IInstanceConnection getInstanceConnection(IProcessConnection processConnection) throws IOException, InstantiationException, IllegalAccessException AbstractServiceWrapper.getInstanceConnection(IProcessConnection)
method implementation. Creates new one within the process each time.- Specified by:
getInstanceConnection
in classAbstractServiceWrapper<T>
- Parameters:
processConnection
- given remote invoker provider (notnull
)- Returns:
- a remote invoker for the service (not
null
) - Throws:
IOException
- if connection with process failsInstantiationException
- if the implementation represents an abstract class, an interface, an array class, a primitive type, or void; or if the class has no nullary constructor; or if the instantiation fails for some other reasonIllegalAccessException
- if could not instantiate the implementation by it's default constructor (for instance, if the default constructor is unaccessible)
-