Code example for Set

Methods: isEmpty

			throw new IllegalStateException("Transaction synchronization is not active");
		// Return unmodifiable snapshot, to avoid ConcurrentModificationExceptions 
		// while iterating and invoking synchronization callbacks that in turn 
		// might register further synchronizations. 
		if (synchs.isEmpty()) {
			return Collections.emptyList();
		else { 
			// Sort lazily here, not in registerSynchronization. 
			List<TransactionSynchronization> sortedSynchs = new ArrayList<TransactionSynchronization>(synchs);
			return Collections.unmodifiableList(sortedSynchs);
	 * Deactivate transaction synchronization for the current thread. 
	 * Called by the transaction manager on transaction cleanup. 
	 * @throws IllegalStateException if synchronization is not active