1 22 package org.objectweb.petals.jbi.registry; 23 24 import java.io.Serializable ; 25 26 import javax.jbi.servicedesc.ServiceEndpoint; 27 28 38 public class ConsumerEndpoint extends AbstractEndpoint implements 39 ServiceEndpoint, Cloneable , Serializable { 40 41 42 private static final long serialVersionUID = 1L; 43 44 47 public ConsumerEndpoint(String componentname, String containerName) { 48 super(null, null, componentname, containerName, EndpointType.CONSUMER, 49 null); 50 } 51 52 55 public ConsumerEndpoint clone(){ 56 ConsumerEndpoint consumer = null; 57 try { 58 consumer = (ConsumerEndpoint) super.clone(); 59 } catch (CloneNotSupportedException e) { 60 consumer = null; 61 } 62 return consumer; 63 } 64 } 65 | Popular Tags |