Class SubjectDomainCombiner

    • Constructor Detail

      • SubjectDomainCombiner

        public SubjectDomainCombiner​(Subject subject)
    • Method Detail

      • getSubject

        public Subject getSubject()
      • combine

        public ProtectionDomain[] combine​(ProtectionDomain[] currentDomains,
                                          ProtectionDomain[] assignedDomains)
        Description copied from interface: DomainCombiner
        Returns a combination of the two provided ProtectionDomain arrays. Implementers can simply merge the two arrays into one, remove duplicates and perform other optimizations.
        Specified by:
        combine in interface DomainCombiner
        Parameters:
        currentDomains - the protection domains of the current execution thread
        assignedDomains - the protection domains of the parent thread, may be null.
        Returns:
        a single ProtectionDomain array computed from the two provided arrays.