org.jboss.kernel.plugins.registry.basic
Class BasicKernelBus
java.lang.Object
org.jboss.kernel.plugins.event.AbstractEventEmitter
org.jboss.kernel.plugins.AbstractKernelObject
org.jboss.kernel.plugins.registry.AbstractKernelBus
org.jboss.kernel.plugins.registry.basic.BasicKernelBus
- All Implemented Interfaces:
- KernelEventEmitter, KernelObject, KernelBus
public class BasicKernelBus
- extends AbstractKernelBus
Basic Kernel bus.
- Author:
- Adrian Brock, Ales Justin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicKernelBus
public BasicKernelBus()
execute
protected <T> Object execute(Object name,
Class<T> clazz,
org.jboss.kernel.plugins.registry.basic.BasicKernelBus.Dispatcher<T> dispatcher)
throws Throwable
- Execute dispatch.
- Type Parameters:
T - exact context type- Parameters:
name - the entry nameclazz - the context classdispatcher - the dispatcher
- Returns:
- dispatcher's result
- Throws:
Throwable - for any error
get
public Object get(Object name,
String getter)
throws Throwable
- Description copied from interface:
KernelBus
- Getter property / attribute
- Parameters:
name - entry namegetter - property / attribute name
- Returns:
- target's property / attribute instance
- Throws:
Throwable - for any error
set
public void set(Object name,
String setter,
Object value)
throws Throwable
- Description copied from interface:
KernelBus
- Setter property / attribute
- Parameters:
name - entry namesetter - property / attribute namevalue - set target's property / attribute instance
- Throws:
Throwable - for any error
invoke
public Object invoke(Object name,
String methodName,
Object[] parameters,
String[] signature)
throws Throwable
- Description copied from interface:
KernelBus
- Invoke method / operation
- Parameters:
name - entry namemethodName - method nameparameters - parameter valuessignature - method's parameter types / signatures
- Returns:
- inovocation's return object
- Throws:
Throwable - for any error
Copyright ? 2007 JBoss Inc.. All Rights Reserved.