Package com._1c.g5.wiring
Class ManagedServicesSupport
- java.lang.Object
-
- com._1c.g5.wiring.ManagedServicesSupport
-
public class ManagedServicesSupport extends Object
Support for services activation and deactivation.Instances of
ManagedServicesSupport
are not safe for use by multiple threads.- See Also:
IManagedService
-
-
Constructor Summary
Constructors Constructor Description ManagedServicesSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateManagedService(IManagedService service)
Activate the given managed service.void
activateManagedServices(Function<Class<? extends IManagedService>,IManagedService> classToInstance, List<Class<? extends IManagedService>> managedServices)
Activate the given managed services.void
activateManagedServices(List<IManagedService> services)
Activate the given managed services.void
deactivateManagedServices()
Deactivate all previously activatedIManagedService
services that clients activaed in#activateManagedServices()
method.void
deactivateManagedServices(org.eclipse.core.runtime.Plugin plugin)
Deactivate all previously activatedIManagedService
services that clients activaed in#activateManagedServices()
method.
-
-
-
Method Detail
-
activateManagedService
public void activateManagedService(IManagedService service)
Activate the given managed service.- Parameters:
service
- the of managed service, cannot benull
- See Also:
IManagedService
-
activateManagedServices
public void activateManagedServices(List<IManagedService> services)
Activate the given managed services.- Parameters:
services
- the list of managed services, cannot benull
- See Also:
IManagedService
-
activateManagedServices
public void activateManagedServices(Function<Class<? extends IManagedService>,IManagedService> classToInstance, List<Class<? extends IManagedService>> managedServices)
Activate the given managed services. Service instances will be supplied by the support injector.- Parameters:
classToInstance
- fuction to get instances of services from its classes, cannot benull
managedServices
- the list of managed service classes, cannot benull
- See Also:
IManagedService
-
deactivateManagedServices
public void deactivateManagedServices(org.eclipse.core.runtime.Plugin plugin)
Deactivate all previously activatedIManagedService
services that clients activaed in#activateManagedServices()
method.Services will be deactivated in reversed order.
- Parameters:
plugin
- the plug-in instance to log errors to, cannot benull
- See Also:
IManagedService
-
deactivateManagedServices
public void deactivateManagedServices()
Deactivate all previously activatedIManagedService
services that clients activaed in#activateManagedServices()
method.Services will be deactivated in reversed order.
- See Also:
IManagedService
-
-