Class SingletonServiceWrapper<T>
java.lang.Object
com._1c.g5.v8.dt.internal.pm.wrappers.AbstractServiceWrapper<T>
com._1c.g5.v8.dt.internal.pm.wrappers.SingletonServiceWrapper<T>
- All Implemented Interfaces:
IServiceWrapper<T>
A service wrapper for singleton service.
-
Field Summary
Fields inherited from class com._1c.g5.v8.dt.internal.pm.wrappers.AbstractServiceWrapper
serviceBinder -
Constructor Summary
ConstructorsConstructorDescriptionSingletonServiceWrapper(ServiceBinder<T> serviceBinder) Inherits super constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidDisposes instance associated with given proxy.protected IInstanceConnectiongetInstanceConnection(IProcessConnection processConnection) AbstractServiceWrapper.getInstanceConnection(IProcessConnection)method implementation. .Methods inherited from class com._1c.g5.v8.dt.internal.pm.wrappers.AbstractServiceWrapper
createProxy
-
Constructor Details
-
SingletonServiceWrapper
Inherits super constructor.- Parameters:
serviceBinder-
-
-
Method Details
-
dispose
Description copied from interface:IServiceWrapperDisposes instance associated with given proxy.- Specified by:
disposein interfaceIServiceWrapper<T>- Overrides:
disposein classAbstractServiceWrapper<T>- Parameters:
proxy- given proxy (notnull)
-
getInstanceConnection
protected IInstanceConnection getInstanceConnection(IProcessConnection processConnection) throws IOException, InstantiationException, IllegalAccessException AbstractServiceWrapper.getInstanceConnection(IProcessConnection)method implementation. .- Specified by:
getInstanceConnectionin 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)
-