Class AbstractServiceWrapper<T>
java.lang.Object
com._1c.g5.v8.dt.internal.pm.wrappers.AbstractServiceWrapper<T>
- All Implemented Interfaces:
- IServiceWrapper<T>
- Direct Known Subclasses:
- DefaultServiceWrapper,- SingletonServiceWrapper
An abstract implementation of 
IServiceWrapper.
 If the service is singleton or not is specified within classes extending this interface.- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractServiceWrapper(ServiceBinder<T> serviceBinder) Creates new instance with givenServiceBinder.
- 
Method SummaryModifier and TypeMethodDescriptioncreateProxy(IProcessConnection processConnection) IServiceWrapper.createProxy(IProcessConnection)method implementation.voidDisposes instance associated with given proxy.protected abstract IInstanceConnectiongetInstanceConnection(IProcessConnection processConnection) Provides a remote invoker for the service using given remote invoker provider.
- 
Field Details- 
serviceBinderThe service binder. 
 
- 
- 
Constructor Details- 
AbstractServiceWrapperCreates new instance with givenServiceBinder.- Parameters:
- serviceBinder- given- ServiceBinder(not- null)
 
 
- 
- 
Method Details- 
createProxypublic T createProxy(IProcessConnection processConnection) throws InstantiationException, IllegalAccessException, IOException, InterruptedException IServiceWrapper.createProxy(IProcessConnection)method implementation.- Specified by:
- createProxyin interface- IServiceWrapper<T>
- Parameters:
- processConnection- given process connection (not- null)
- Returns:
- a proxy to service instance create within the process (not null)
- Throws:
- InstantiationException- 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 reason
- IllegalAccessException- if could not instantiate the implementation by it's default constructor (for instance, if the default constructor is unaccessible)
- IOException- if request of starting a new process is failed
- InterruptedException- if request of starting a new process is interrupted
 
- 
disposeDescription copied from interface:IServiceWrapperDisposes instance associated with given proxy.- Specified by:
- disposein interface- IServiceWrapper<T>
- Parameters:
- proxy- given proxy (not- null)
 
- 
getInstanceConnectionprotected abstract IInstanceConnection getInstanceConnection(IProcessConnection processConnection) throws IOException, InstantiationException, IllegalAccessException Provides a remote invoker for the service using given remote invoker provider. Creates new or returns existing running within the process - depends on if the service is singleton. - Parameters:
- processConnection- given remote invoker provider (not- null)
- Returns:
- a remote invoker for the service (not null)
- Throws:
- IOException- if connection with process fails
- InstantiationException- 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 reason
- IllegalAccessException- if could not instantiate the implementation by it's default constructor (for instance, if the default constructor is unaccessible)
 
 
-