1 22 package org.jboss.deployers.spi.management; 23 24 30 public class ManagedPropertyRef 31 { 32 36 private String context; 37 41 private String beanName; 42 45 private String propertyName; 46 49 private String description; 50 51 58 public ManagedPropertyRef(String context, String beanName, 59 String propertyName, String description) 60 { 61 this.context = context; 62 this.beanName = beanName; 63 this.propertyName = propertyName; 64 this.description = description; 65 } 66 67 70 public String getBeanName() 71 { 72 return this.beanName; 73 } 74 75 78 public String getContext() 79 { 80 return this.context; 81 } 82 83 86 public String getDescription() 87 { 88 return this.description; 89 } 90 91 94 public String getPropertyName() 95 { 96 return this.propertyName; 97 } 98 99 102 public boolean equals(Object obj) 103 { 104 ManagedPropertyRef ref = (ManagedPropertyRef) obj; 105 boolean equals = beanName.equals(ref.beanName); 106 if( equals ) 107 { 108 equals = propertyName.equals(ref.propertyName); 109 } 110 return equals; 111 } 112 113 116 public int hashCode() 117 { 118 return beanName.hashCode() + propertyName.hashCode(); 119 } 120 } 121 | Popular Tags |