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
- Direct Known Subclasses:
- LifecycleAwareKernelBus
public class BasicKernelBus
- extends AbstractKernelBus
Basic Kernel bus.
- Author:
- Adrian Brock, Ales Justin
Method Summary |
protected
|
execute(ControllerContext context,
Class<T> clazz,
BasicKernelBus.Dispatcher<T> dispatcher)
Execute dispatch. |
protected
|
execute(Object name,
Class<T> clazz,
BasicKernelBus.Dispatcher<T> dispatcher)
Execute dispatch. |
Object |
get(Object name,
String getter)
Getter property / attribute |
Object |
invoke(Object name,
String methodName,
Object[] parameters,
String[] signature)
Invoke method / operation |
void |
set(Object name,
String setter,
Object value)
Setter property / attribute |
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,
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
execute
protected <T> Object execute(ControllerContext context,
Class<T> clazz,
BasicKernelBus.Dispatcher<T> dispatcher)
throws Throwable
- Execute dispatch.
- Type Parameters:
T
- exact context type- Parameters:
context
- the contextclazz
- 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 © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.