Commit c1db4903856e8e0eedab385708e54e5a3c6d32bd

Authored by Emerson Oliveira
1 parent e1dda2ba
Exists in master

Adição de javadoc para a classe

br.gov.frameworkdemoiselle.management.GenericNotification
impl/core/src/main/java/br/gov/frameworkdemoiselle/management/GenericNotification.java
@@ -37,40 +37,44 @@ @@ -37,40 +37,44 @@
37 package br.gov.frameworkdemoiselle.management; 37 package br.gov.frameworkdemoiselle.management;
38 38
39 /** 39 /**
40 - *  
41 * Notification that can be sent by the {@link NotificationManager}. 40 * Notification that can be sent by the {@link NotificationManager}.
42 * 41 *
43 * @author serpro 42 * @author serpro
44 - *  
45 */ 43 */
46 public class GenericNotification { 44 public class GenericNotification {
47 - 45 +
48 private Object message; 46 private Object message;
49 -  
50 - public GenericNotification(){ 47 +
  48 + /**
  49 + * Constructor without params.
  50 + */
  51 + public GenericNotification() {
51 } 52 }
52 - 53 +
  54 + /**
  55 + * Constructor with message to notification.
  56 + *
  57 + * @param message
  58 + * message to notification.
  59 + */
53 public GenericNotification(Object message) { 60 public GenericNotification(Object message) {
54 super(); 61 super();
55 this.message = message; 62 this.message = message;
56 } 63 }
57 64
58 -  
59 public Object getMessage() { 65 public Object getMessage() {
60 return message; 66 return message;
61 } 67 }
62 68
63 -  
64 public void setMessage(Object message) { 69 public void setMessage(Object message) {
65 this.message = message; 70 this.message = message;
66 } 71 }
67 72
68 -  
69 public Class<? extends Object> getType() { 73 public Class<? extends Object> getType() {
70 - if (message!=null){ 74 + if (message != null) {
71 return message.getClass(); 75 return message.getClass();
72 } 76 }
73 - 77 +
74 return null; 78 return null;
75 } 79 }
76 80