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 37 package br.gov.frameworkdemoiselle.management;
38 38  
39 39 /**
40   - *
41 40 * Notification that can be sent by the {@link NotificationManager}.
42 41 *
43 42 * @author serpro
44   - *
45 43 */
46 44 public class GenericNotification {
47   -
  45 +
48 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 60 public GenericNotification(Object message) {
54 61 super();
55 62 this.message = message;
56 63 }
57 64  
58   -
59 65 public Object getMessage() {
60 66 return message;
61 67 }
62 68  
63   -
64 69 public void setMessage(Object message) {
65 70 this.message = message;
66 71 }
67 72  
68   -
69 73 public Class<? extends Object> getType() {
70   - if (message!=null){
  74 + if (message != null) {
71 75 return message.getClass();
72 76 }
73   -
  77 +
74 78 return null;
75 79 }
76 80  
... ...