1 22 package org.jboss.test.kernel.deployment.jboss.beans.servicepojo; 23 24 import java.io.Serializable ; 25 26 32 public class BindAddress implements Serializable 33 { 34 35 private static final long serialVersionUID = 1L; 36 37 39 private String address; 40 private int port; 41 42 44 public BindAddress(String address, int port) 45 { 46 System.out.println("BindAddress - CTOR(" + address + ", " + port + ")"); 47 48 this.address = address; 49 this.port = port; 50 } 51 52 54 public String getAddress() 55 { 56 return address; 57 } 58 59 public int getPort() 60 { 61 return port; 62 } 63 64 66 public String toString() 67 { 68 StringBuffer sbuf = new StringBuffer (); 69 sbuf 70 .append("BindAddress") 71 .append("[ address=").append(address) 72 .append(", port=").append(port) 73 .append(" ]"); 74 75 return sbuf.toString(); 76 } 77 } 78 | Popular Tags |