Modules may register Cell Factories in this Cell Registry in one of two ways:
(1) Annotate their CellFactorySPI class with the @CellFactory annotation. (2) Manually register their CellFactorySPI class using registerCellFactory().
This class maintains the set of registered Cell Factories for the current primary ServerSessionManager. When the primary ServerSessionManager changes, the current set of Cell Factories that were registered via the @CellFactory annotation are unregistered before the set of Cell Factories associated with the new primary ServerSessionManager and annotated with @CellFactory are added.
Modules that manually add CellFactorySPI class with registerCellFactory() must manually unregister their class with unregisterCellFactory() whenever the primary ServerSessionManager changes.
@author Jordan Slott
|
|