1 22 package org.jboss.kernel.plugins.registry.basic; 23 24 import org.jboss.joinpoint.spi.TargettedJoinpoint; 25 import org.jboss.kernel.plugins.registry.AbstractKernelBus; 26 import org.jboss.kernel.spi.registry.KernelRegistryEntry; 27 28 34 public class BasicKernelBus extends AbstractKernelBus 35 { 36 41 public BasicKernelBus() throws Exception  42 { 43 } 44 45 public Object invoke(Object name, TargettedJoinpoint joinPoint) throws Throwable  46 { 47 KernelRegistryEntry entry = registry.getEntry(name); 48 Object target = entry.getTarget(); 49 joinPoint.setTarget(target); 50 return joinPoint.dispatch(); 51 } 52 } 53 | Popular Tags |