Package br.gov.frameworkdemoiselle.management

Examples of br.gov.frameworkdemoiselle.management.AttributeChangeNotification


          // Manda uma notificação de mudança de atributo
          NotificationManager notificationManager = Beans.getReference(NotificationManager.class);
          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) {
View Full Code Here


          // Manda uma notificação de mudança de atributo
          NotificationManager notificationManager = Beans.getReference(NotificationManager.class);
          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) {
View Full Code Here

TOP

Related Classes of br.gov.frameworkdemoiselle.management.AttributeChangeNotification

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.