Package net.solosky.maplefetion.client

Examples of net.solosky.maplefetion.client.NotifyHandler


      Class clazz = this.findNotifyHandlerClass(notify);
      if(clazz==null) {
        throw new DispatcherException("Cannot find a class to handle this notify - notify:\n"+notify.toSendString());
      }
      //加载这个类
      NotifyHandler handler = loadNotifyHandler(clazz);
     
      //处理通知
      if(handler!=null) {
        try {
              handler.handle(notify);
            } catch (FetionException e) {
              throw e;
            }catch(Throwable t) {
              throw new SystemException(t,notify);
            }
View Full Code Here


   * @param clazz
   * @return
   */
  private NotifyHandler loadNotifyHandler(Class clazz) throws DispatcherException
  {
    NotifyHandler handler = null;
    handler = this.notifyHandlers.get(clazz);
    if (handler == null) {
      try {
        handler = (NotifyHandler) clazz.newInstance();
        handler.setDailog(dialog);
        handler.setContext(context);
      } catch (Exception e) {
        throw new DispatcherException(e);
      }
    }
    return handler;
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.client.NotifyHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.