Skip to content
Snippets Groups Projects
Commit 9ef919f5 authored by helene ortiz's avatar helene ortiz
Browse files

No commit message

No commit message
parent 9fa82363
Branches
Tags
No related merge requests found
/*
* Nomad Instrument Control Software
*
* Copyright 2011 Institut Laue-Langevin
*
* Licensed under the EUPL, Version 1.1 only (the "License");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* http://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package fr.ill.ics.bridge;
import java.util.HashMap;
import java.util.Map;
import fr.ill.ics.bridge.listeners.ServerSurveyXMLListener;
public class SurveyEventSender {
private static Map<String, SurveyEventSender> instances = new HashMap<String, SurveyEventSender>();
private String serverId;
private SurveyEventSender(String serverId) {
this.serverId = serverId;
}
public static SurveyEventSender getInstance(String serverId) {
if (!instances.containsKey(serverId)) {
SurveyEventSender instance = new SurveyEventSender(serverId);
instances.put(serverId, instance);
}
return instances.get(serverId);
}
/**
* Add new listener for server survey events
* @param listener
*/
public void addSurveyXMLListener(ServerSurveyXMLListener listener) {
System.out.println("TODO: code addSurveyXMLListener !");
}
public void removeSurveyXMLListener(ServerSurveyXMLListener listener) {
System.out.println("TODO: code removeSurveyXMLListener !");
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment