1 22 package org.jboss.kernel.plugins; 23 24 import org.jboss.kernel.Kernel; 25 import org.jboss.kernel.plugins.event.AbstractEventEmitter; 26 import org.jboss.kernel.spi.KernelObject; 27 import org.jboss.logging.Logger; 28 29 35 public abstract class AbstractKernelObject extends AbstractEventEmitter implements KernelObject 36 { 37 38 protected Logger log = Logger.getLogger(getClass()); 39 40 41 protected Kernel kernel; 42 43 46 public AbstractKernelObject() 47 { 48 } 49 50 public Kernel getKernel() 51 { 52 Kernel.checkAccess(); 53 return kernel; 54 } 55 56 public void setKernel(Kernel kernel) throws Throwable 57 { 58 Kernel.checkConfigure(); 59 this.kernel = kernel; 60 } 61 } 62 | Popular Tags |