Package at.molindo.notify.INotifyService

Examples of at.molindo.notify.INotifyService.NotifyRuntimeException


      runtime.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, new SLF4JLogChute());
      runtime.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT, true);
      runtime.init();
      return runtime;
    } catch (Exception e) {
      throw new NotifyRuntimeException("failed to init velocity runtime", e);
    }
  }
View Full Code Here


  protected void dispatch(@Nonnull Notification notification) {
    try {
      dispatch(notification, false);
    } catch (NotifyException e) {
      throw new NotifyRuntimeException("unexpected NotifyException", e);
    }
  }
View Full Code Here

        mmp.addBodyPart(text);
        mmp.addBodyPart(html);

        mm.setContent(mmp);
      } else {
        throw new NotifyRuntimeException("unexpected format (" + _format + ") or type (" + message.getType()
            + ")");
      }

      send(mm);
View Full Code Here

         * might happen if a push takes an unusual amount of time to
         * finish
         */
        log.info("notification id currently locked: " + e.getKey());
      } catch (Exception e) {
        throw new NotifyRuntimeException("unexepcted exception from doPush()", e);
      }
    }
View Full Code Here

  private PropertyDescriptor getDescriptor(String propertyName) {
    try {
      PropertyDescriptor pd = PropertyUtils.getPropertyDescriptor(_bean, propertyName);
      return pd != null && pd.getWriteMethod() != null && pd.getReadMethod() != null ? pd : null;
    } catch (IllegalAccessException e) {
      throw new NotifyRuntimeException("failed to get PropertyDescriptor for property " + propertyName
          + " from bean " + _bean, e);
    } catch (InvocationTargetException e) {
      throw new NotifyRuntimeException("failed to get PropertyDescriptor for property " + propertyName
          + " from bean " + _bean, e);
    } catch (NoSuchMethodException e) {
      // ignore
      return null;
    }
View Full Code Here

  private Object getProperty(String name) {
    try {
      return BeanUtils.getProperty(_bean, name);
    } catch (IllegalAccessException e) {
      throw new NotifyRuntimeException("failed to get property " + name + " from bean " + _bean, e);
    } catch (InvocationTargetException e) {
      throw new NotifyRuntimeException("failed to get property " + name + " from bean " + _bean, e);
    } catch (NoSuchMethodException e) {
      // ignore
      return null;
    }
  }
View Full Code Here

  private Object invoke(Method m, Object... args) {
    try {
      return m.invoke(_bean, args);
    } catch (IllegalArgumentException e) {
      throw new NotifyRuntimeException("failed to invoke method " + m + " on " + _bean, e);
    } catch (IllegalAccessException e) {
      throw new NotifyRuntimeException("failed to invoke method " + m + " on " + _bean, e);
    } catch (InvocationTargetException e) {
      throw new NotifyRuntimeException("failed to invoke method " + m + " on " + _bean, e);
    }
  }
View Full Code Here

    }

    try {
      PropertyUtils.setProperty(_bean, param.getName(), converted);
    } catch (NoSuchMethodException e) {
      throw new NotifyRuntimeException(e);
    } catch (IllegalAccessException e) {
      throw new NotifyRuntimeException(e);
    } catch (InvocationTargetException e) {
      throw new NotifyRuntimeException(e);
    }
  }
View Full Code Here

      runtime.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, new SLF4JLogChute());
      runtime.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT, true);
      runtime.init();
      return runtime;
    } catch (Exception e) {
      throw new NotifyRuntimeException("failed to init velocity runtime", e);
    }
  }
View Full Code Here

      runtime.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, new SLF4JLogChute());
      runtime.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT, true);
      runtime.init();
      return runtime;
    } catch (Exception e) {
      throw new NotifyRuntimeException("failed to init velocity runtime", e);
    }
  }
View Full Code Here

TOP

Related Classes of at.molindo.notify.INotifyService.NotifyRuntimeException

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.