Interface ModuleRegistration
- All Known Implementing Classes:
ModuleRegistrationListener,ModuleRegistrationServlet
If further setup of module-related resources is required, these methods should be overridden:
handleServiceRegistration(ModuleServiceRegistrationContext)handleRepositoryStartup(ModuleContextOnRepositoryStartup)
If further release of module-related resources is required, these methods should be overridden:
- Since:
- 5.9.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidThis method should be overridden to perform operations needed, when the current web application is being taken out of service.default voidThis method should be overridden to release module-specific resources when the repository is shut down.default voidThis method should be overridden to register module-specific resources and performs module-specific initializations that require the repository.default voidThis method should be overridden to register module-defined user services, service groups and user service extensions.
-
Method Details
-
handleServiceRegistration
This method should be overridden to register module-defined user services, service groups and user service extensions.This method is invoked once the EBX® module has been registered, during the module compilation. Note that EBX® repository is not yet initialized at the time this method is invoked (that is, the method
Repository.getDefault()cannot be called, otherwise it will throw an exception).Default implementation does nothing.
- Parameters:
aContext- the services registration context
-
handleRepositoryStartup
default void handleRepositoryStartup(ModuleContextOnRepositoryStartup aContext) throws OperationException This method should be overridden to register module-specific resources and performs module-specific initializations that require the repository.It is invoked once the EBX® module has been registered, after
handleServiceRegistration(ModuleServiceRegistrationContext)and when the repository has been started.Default implementation does nothing.
- Parameters:
aContext- the module registration context invoked at the initialization of the EBX® repository.- Throws:
OperationException- if an operation cannot complete successfully.
-
destroyBeforeUnregisterModule
default void destroyBeforeUnregisterModule()This method should be overridden to perform operations needed, when the current web application is being taken out of service.Called by one of these methods:
Default implementation does nothing.
-
handleRepositoryShutdown
default void handleRepositoryShutdown()This method should be overridden to release module-specific resources when the repository is shut down.Default implementation does nothing.
-