packagecom.hand.face.utils;importcom.hand.face.myinterface.NotifyMessage;/** * Created by USER on 2016/12/14. */publicclassNotifyMessageManager{privatestaticNotifyMessageManagernotify;privateNotifyMessagelistener;privateNotifyMessageManager(){}publicstaticsynchronizedNotifyMessageManagergetInstance(){if(notify==null){notify=newNotifyMessageManager();}returnnotify;}publicvoidsetNotifyMessage(NotifyMessagenm){listener=nm;}publicvoidsendNotifyMessage(Stringmsg){listener.sendMessage(msg);}}