1 22 package org.jboss.test.kernel.deployment.jboss.beans.configpojo; 23 24 import java.io.Serializable ; 25 import java.util.Collections ; 26 import java.util.List ; 27 28 35 public class ConfigPOJO implements Serializable 36 { 37 38 private static final long serialVersionUID = 666L; 39 40 42 private String userid; 43 private String passwd; 44 private List roles; 45 46 48 public ConfigPOJO(String userid, String passwd, List roles) 49 { 50 this.userid = userid; 51 this.passwd = passwd; 52 this.roles = roles; 53 } 54 55 57 public String getUserId() 58 { 59 return userid; 60 } 61 62 public String getPassword() 63 { 64 return passwd; 65 } 66 67 public List getRoles() 68 { 69 return Collections.unmodifiableList(roles); 70 } 71 72 74 public String toString() 75 { 76 StringBuffer sbuf = new StringBuffer (); 77 sbuf 78 .append(getClass().getName()) 79 .append("[ userId=").append(userid) 80 .append(", passwd=").append(passwd) 81 .append(", roles=").append(roles) 82 .append(" ]"); 83 84 return sbuf.toString(); 85 } 86 } 87 | Popular Tags |