1 23 package com.sun.enterprise.deployment; 24 25 import com.sun.enterprise.deployment.web.AppListenerDescriptor; 26 27 33 34 public class AppListenerDescriptorImpl implements AppListenerDescriptor, 35 java.io.Serializable 36 { 37 private String listenerClass; 38 39 41 public AppListenerDescriptorImpl() { 42 } 43 44 48 public AppListenerDescriptorImpl(String clz) { 49 this.listenerClass = clz; 50 } 51 52 56 public String getListener() { 57 if (this.listenerClass == null) { 58 this.listenerClass = ""; 59 } 60 return this.listenerClass; 61 } 62 63 67 public void setListener(String clz) { 68 this.listenerClass = clz; 69 } 70 71 74 public boolean equals(Object obj) { 75 return (obj instanceof AppListenerDescriptorImpl)? 76 this.getListener().equals( 77 ((AppListenerDescriptorImpl)obj).getListener()) : 78 super.equals(obj); 79 } 80 81 84 public void print(StringBuffer toStringBuffer) { 85 toStringBuffer.append("Listener Class ").append(this.getListener()); 86 } 87 } 88 89 | Popular Tags |