1 17 package org.apache.servicemix.jbi.event; 18 19 import java.util.EventObject ; 20 21 import org.apache.servicemix.jbi.framework.ComponentMBeanImpl; 22 23 public class ComponentEvent extends EventObject { 24 25 private static final long serialVersionUID = -4075242868959881673L; 26 27 public static final int COMPONENT_INSTALLED = 0; 28 public static final int COMPONENT_STARTED = 1; 29 public static final int COMPONENT_STOPPED = 2; 30 public static final int COMPONENT_SHUTDOWN = 3; 31 public static final int COMPONENT_UNINSTALLED = 4; 32 33 private ComponentMBeanImpl component; 34 private int type; 35 36 public ComponentEvent(ComponentMBeanImpl component, int type) { 37 super(component); 38 this.component = component; 39 this.type = type; 40 } 41 42 public ComponentMBeanImpl getComponent() { 43 return component; 44 } 45 46 public int getEventType() { 47 return type; 48 } 49 50 } 51 | Popular Tags |