Class ServiceRegistationDescriptor
java.lang.Object
com._1c.g5.v8.dt.internal.lifecycle.ServiceRegistationDescriptor
- All Implemented Interfaces:
IServiceRegistrationDescriptor
public final class ServiceRegistationDescriptor
extends Object
implements IServiceRegistrationDescriptor
The
IServiceRegistrationDescriptor
implementation.-
Constructor Summary
ConstructorsConstructorDescriptionServiceRegistationDescriptor
(String serviceName, Object service, Map<LifecyclePhase, ILifecyclePhaseParticipantReference> participants) Creates service registration descriptor. -
Method Summary
Modifier and TypeMethodDescriptionReturns a lifecycle phase to phase participant map.Returns the lifecycle service instance.Returns the lifecycle service name.
-
Constructor Details
-
ServiceRegistationDescriptor
public ServiceRegistationDescriptor(String serviceName, Object service, Map<LifecyclePhase, ILifecyclePhaseParticipantReference> participants) Creates service registration descriptor.- Parameters:
serviceName
- the name of the lifecycle service, cannot benull
.service
- the lifecycle service object, cannot benull
.participants
- the participants map where the keys are lifecycle phases and the values areILifecyclePhaseParticipantReference
instances, cannot benull
.- Throws:
IllegalArgumentException
- if one of the specified arguments doesn't satisfy its requirements.
-
-
Method Details
-
getServiceName
Description copied from interface:IServiceRegistrationDescriptor
Returns the lifecycle service name.- Specified by:
getServiceName
in interfaceIServiceRegistrationDescriptor
- Returns:
- the service name, never
null
.
-
getService
Description copied from interface:IServiceRegistrationDescriptor
Returns the lifecycle service instance.- Specified by:
getService
in interfaceIServiceRegistrationDescriptor
- Returns:
-
getParticipants
Description copied from interface:IServiceRegistrationDescriptor
Returns a lifecycle phase to phase participant map.- Specified by:
getParticipants
in interfaceIServiceRegistrationDescriptor
- Returns:
- a participants map, never
null
. - See Also:
-