1 17 18 package org.apache.geronimo.gbean; 19 20 import java.io.Serializable ; 21 import java.util.Collections ; 22 import java.util.Set ; 23 24 29 public final class GNotificationInfo implements Serializable { 30 private final String name; 31 private final Set notificationTypes; 32 33 public GNotificationInfo(String name, Set notificationTypes) { 34 this.name = name; 35 this.notificationTypes = Collections.unmodifiableSet(notificationTypes); 36 } 37 38 public String getName() { 39 return name; 40 } 41 42 public Set getNotificationTypes() { 43 return notificationTypes; 44 } 45 46 public String toString() { 47 return "[GNotificationInfo:" + 48 " name=" + name + 49 " notificationTypes=" + notificationTypes + 50 "]"; 51 } 52 } 53 | Popular Tags |