1 23 24 package com.sun.enterprise.management.model; 25 26 public class JMSResourceMdl extends J2EEResourceMdl { 27 28 private static String MANAGED_OBJECT_TYPE = "JMSResource"; 29 30 protected String resType = null; 31 protected String username = null; 32 protected String password = null; 33 protected String [] propNames = null; 34 protected String [] propValues = null; 35 36 public JMSResourceMdl(String name, String resType, 37 String username, String password, 38 String [] propNames, String [] propValues) { 39 super(name); 40 this.resType = resType; 41 this.username = username; 42 this.password = password; 43 this.propNames = propNames; 44 this.propValues = propValues; 45 46 } 47 public JMSResourceMdl(String name, String serverName, String resType, 48 String username, String password, 49 String [] propNames, String [] propValues) { 50 super(name,serverName); 51 this.resType = resType; 52 this.username = username; 53 this.password = password; 54 this.propNames = propNames; 55 this.propValues = propValues; 56 57 } 58 59 62 public String getj2eeType() { 63 return MANAGED_OBJECT_TYPE; 64 } 65 66 public String getresType() { 67 return resType; 68 } 69 70 public String getusername() { 71 return username; 72 } 73 74 public String getpassword() { 75 return password; 76 } 77 78 public String [] getpropNames() { 79 return propNames; 80 } 81 82 public String [] getpropValues() { 83 return propValues; 84 } 85 } 86 | Popular Tags |