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 areILifecyclePhaseParticipantReferenceinstances, cannot benull.- Throws:
IllegalArgumentException- if one of the specified arguments doesn't satisfy its requirements.
-
-
Method Details
-
getServiceName
Description copied from interface:IServiceRegistrationDescriptorReturns the lifecycle service name.- Specified by:
getServiceNamein interfaceIServiceRegistrationDescriptor- Returns:
- the service name, never
null.
-
getService
Description copied from interface:IServiceRegistrationDescriptorReturns the lifecycle service instance.- Specified by:
getServicein interfaceIServiceRegistrationDescriptor- Returns:
-
getParticipants
Description copied from interface:IServiceRegistrationDescriptorReturns a lifecycle phase to phase participant map.- Specified by:
getParticipantsin interfaceIServiceRegistrationDescriptor- Returns:
- a participants map, never
null. - See Also:
-