Examples of sendNotification()


Examples of br.gov.frameworkdemoiselle.management.NotificationManager.sendNotification()

          Class<? extends Object> attributeType = newValue != null ? newValue.getClass() : null;

          AttributeChangeNotification notification = new AttributeChangeNotification(bundle.getString(
              "management-notification-attribute-changed", propertyName, managedType.getType()
                  .getCanonicalName()), propertyName, attributeType, oldValue, newValue);
          notificationManager.sendNotification(notification);

        } catch (ConstraintViolationException ce) {
          throw ce;
        } catch (Exception e) {
          throw new ManagedInvokationException(bundle.getString("management-invoke-error", method.getName()), e);
View Full Code Here

Examples of br.gov.frameworkdemoiselle.management.NotificationManager.sendNotification()

          Class<? extends Object> attributeType = newValue != null ? newValue.getClass() : null;

          AttributeChangeNotification notification = new AttributeChangeNotification(bundle.getString(
              "management-notification-attribute-changed", propertyName, managedType.getType()
                  .getCanonicalName()), propertyName, attributeType, oldValue, newValue);
          notificationManager.sendNotification(notification);

        } catch (DemoiselleException de) {
          throw de;
        } catch (Exception e) {
          throw new DemoiselleException(bundle.getString("management-invoke-error", method.getName()), e);
View Full Code Here

Examples of br.gov.frameworkdemoiselle.management.NotificationManager.sendNotification()

              bundle.getString("management-notification-attribute-changed", propertyName, managedType.getType().getCanonicalName())
              , propertyName
              , attributeType
              , oldValue
              , newValue) );
          notificationManager.sendNotification(notification);

        } catch (ConstraintViolationException ce) {
          throw ce;
        } catch (Exception e) {
          throw new ManagedInvokationException(bundle.getString("management-invoke-error", method.getName()), e);
View Full Code Here

Examples of br.gov.frameworkdemoiselle.management.NotificationManager.sendNotification()

      Assert.fail();
    }

    // Manda a notificação pelo Demoiselle
    DefaultNotification n = new DefaultNotification("Notification test successful");
    notificationManager.sendNotification(n);

    // Se o componente funcionou, o Demoiselle propagou a notificação para o servidor MBean e o listener preencheu
    // o StringBuffer com nossa mensagem.
    Assert.assertEquals("Notification test successful", notificationBuffer.toString());
   
View Full Code Here

Examples of br.gov.frameworkdemoiselle.management.NotificationManager.sendNotification()

      Assert.fail();
    }

    // Manda a notificação pelo Demoiselle
    Notification notification = new DefaultNotification( new AttributeChangeMessage("Attribute Changed", "name", String.class, "Demoiselle 1", "Demoiselle 2") );
    notificationManager.sendNotification(notification);

    // Se o componente funcionou, o Demoiselle propagou a notificação para o servidor MBean e o listener preencheu
    // o StringBuffer com nossa mensagem.
    Assert.assertEquals("Attribute Changed: name = Demoiselle 2", notificationBuffer.toString());
   
View Full Code Here

Examples of com.codereligion.bugsnag.logback.resource.NotifierResource.sendNotification()

        Response response = null;

        try {
            final ResteasyWebTarget resteasyWebTarget = (ResteasyWebTarget) client.target(endpoint);
            final NotifierResource notifierResource= resteasyWebTarget.proxy(NotifierResource.class);
            response = notifierResource.sendNotification(notification);
            final int statusCode = response.getStatus();

            final boolean isOk = StatusCode.OK == statusCode;

            if (isOk) {
View Full Code Here

Examples of com.dbay.apns4j.IApnsConnection.sendNotification()

      @Override
      public void run() {
        IApnsConnection conn = null;
        try {
          conn = getConnection();
          conn.sendNotification(token, payload);
        } catch (Exception e) {
          logger.error(e.getMessage(), e);
        } finally {
          if (conn != null) {
            connPool.returnConn(conn);
View Full Code Here

Examples of com.dbay.apns4j.IApnsConnection.sendNotification()

      @Override
      public void run() {
        IApnsConnection conn = null;
        try {
          conn = getConnection();
          conn.sendNotification(notification);
        } catch (Exception e) {
          logger.error(e.getMessage(), e);
        } finally {
          if (conn != null) {
            connPool.returnConn(conn);
View Full Code Here

Examples of com.dbay.apns4j.IApnsService.sendNotification()

    // set sound null, the music won't be played
//    payload.setSound(null);
    payload.setSound("msg.mp3");
    payload.addParam("uid", 123456);
    payload.addParam("type", 12);
    service.sendNotification(token, payload);
   
    // payload, use loc string
    Payload payload2 = new Payload();
    payload2.setBadge(1);
    payload2.setAlertLocKey("GAME_PLAY_REQUEST_FORMAT");
View Full Code Here

Examples of com.dbay.apns4j.IApnsService.sendNotification()

    // payload, use loc string
    Payload payload2 = new Payload();
    payload2.setBadge(1);
    payload2.setAlertLocKey("GAME_PLAY_REQUEST_FORMAT");
    payload2.setAlertLocArgs(new String[]{"Jenna", "Frank"});
    service.sendNotification(token, payload2);
   
    // get feedback
    List<Feedback> list = service.getFeedbacks();
    if (list != null && list.size() > 0) {
      for (Feedback feedback : list) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.