combine
public ProtectionDomain[] combine(ProtectionDomain[] currentDomains,
ProtectionDomain[] assignedDomains)
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.