1 17 package org.apache.servicemix.jbi.event; 18 19 import java.util.EventObject ; 20 21 import javax.jbi.servicedesc.ServiceEndpoint; 22 23 public class EndpointEvent extends EventObject { 24 25 private static final long serialVersionUID = -4480619483039133388L; 26 27 public static final int INTERNAL_ENDPOINT_REGISTERED = 0; 28 public static final int INTERNAL_ENDPOINT_UNREGISTERED = 1; 29 public static final int EXTERNAL_ENDPOINT_REGISTERED = 2; 30 public static final int EXTERNAL_ENDPOINT_UNREGISTERED = 3; 31 public static final int LINKED_ENDPOINT_REGISTERED = 4; 32 public static final int LINKED_ENDPOINT_UNREGISTERED = 5; 33 public static final int REMOTE_ENDPOINT_REGISTERED = 6; 34 public static final int REMOTE_ENDPOINT_UNREGISTERED = 7; 35 36 private ServiceEndpoint endpoint; 37 private int type; 38 39 public EndpointEvent(ServiceEndpoint endpoint, int type) { 40 super(endpoint); 41 this.endpoint = endpoint; 42 this.type = type; 43 } 44 45 public ServiceEndpoint getEndpoint() { 46 return endpoint; 47 } 48 49 public int getEventType() { 50 return type; 51 } 52 53 } 54 | Popular Tags |