Interface ILifecycleRegistry
- All Known Implementing Classes:
LifecycleRegistry
public interface ILifecycleRegistry
The lifecycle registry.
It allows to register services using descriptors and retrieve participants for the specific phase obtained from the registered services.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the phase participants references.voidregisterService(IServiceRegistrationDescriptor descriptor) Registers lifecycle service represented by the specifieddescriptor.
-
Method Details
-
registerService
Registers lifecycle service represented by the specifieddescriptor.- Parameters:
descriptor- the descriptor with the lifecycle service info, cannot benull.- Throws:
IllegalArgumentException- if the specifieddescriptorisnull.
-
getServiceReferences
Returns the phase participants references.- Parameters:
phase- the lifecycle phase, cannot benull.- Returns:
- a collection of references to phase participants, never
null. - Throws:
IllegalArgumentException- if the specifiedphaseisnull.- See Also:
-