Code example for CopyOnWriteArrayList

Methods: remove

0
	public void addSessionListener(ITestSessionListener listener) { 
		listeners.add(listener); 
	} 
	 
	public void removeSessionListener(ITestSessionListener listener) { 
		listeners.remove(listener); 
	} 
 
	public static TestManager getInstance() { 
		return manager; 
	} 
 
	public void handleEvent(TestSessionEvent event) { 
		for (ITestSessionListener listener : listeners) { 
			listener.handleEvent(event); 
		} 
	} 
	 
	public ITestSession getLastSession() { 
		return sessions.isEmpty() ? null : sessions.get(sessions.size() - 1); 
	}