Class ManagedRelationsHandler


  • public class ManagedRelationsHandler
    extends java.lang.Object
    Handler to process "managed relations".
    • Field Detail

      • performChecks

        private boolean performChecks
        Whether to perform consistency checks.
      • executing

        private boolean executing
        Flag for whether we are running "managed relations" execute() at this point in time.
      • managedRelationDetails

        private java.util.Map<DNStateManager,​RelationshipManager> managedRelationDetails
        Map of RelationshipManager keyed by StateManager that it is for.
    • Constructor Detail

      • ManagedRelationsHandler

        public ManagedRelationsHandler​(boolean performChecks)
        Constructor for a "managed relations" handler.
        Parameters:
        performChecks - Whether to perform consistency checks as part of the execute process.
    • Method Detail

      • setPerformChecks

        public void setPerformChecks​(boolean checks)
      • getRelationshipManagerForStateManager

        public RelationshipManager getRelationshipManagerForStateManager​(DNStateManager sm)
        Method to return the RelationshipManager for the specified StateManager. If none is currently present will create one
        Parameters:
        sm - StateManager
        Returns:
        The RelationshipManager for this object
      • clear

        public void clear()
      • isExecuting

        public boolean isExecuting()
      • execute

        public void execute()