1 25 26 package org.objectweb.petals.jbi.component.event; 27 28 import java.util.EventObject ; 29 30 import org.objectweb.petals.jbi.component.lifecycle.LifeCycleAbstract; 31 32 39 public abstract class LifeCycleStateEventAbstract extends EventObject { 40 public static final int STATE_CHANGE_EXCEPTION = 1; 41 42 public static final int STATE_CHANGED = 0; 43 44 private LifeCycleAbstract element; 45 46 private int status; 47 48 56 public LifeCycleStateEventAbstract(Object source, int status) { 57 super(source); 58 59 this.status = status; 60 } 61 62 public LifeCycleAbstract getElement() { 63 return element; 64 } 65 66 public int getStatus() { 67 return status; 68 } 69 } 70 | Popular Tags |