public final class ActivityProxyHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createClientProxy(Class<T> intf,
Object caller,
T callee)
This class creates a proxy for reporting activities based on the caller
invoking methods on the callee, via the supplied interface.
|
static <T> T |
createClientProxy(String intfName,
Object caller,
T callee)
This class creates a proxy for reporting activities based on the caller
invoking methods on the callee, via the supplied interface.
|
static Object |
createServiceProxy(Class<?> intf,
Object callee)
This class creates a service proxy for reporting activities associated with the
service being invoked.
|
static Object |
createServiceProxy(String intfName,
Object callee)
This class creates a service proxy for reporting activities associated with the
service being invoked.
|
protected static Class<?> |
getDefinedException(Method method,
Throwable t)
This method determines whether the method handles the supplied exception,
and returns the appropriate type.
|
static ActivityProxyHelper |
setActivityCollector(ActivityCollector collector)
This method sets the activity collector.
|
public static ActivityProxyHelper setActivityCollector(ActivityCollector collector)
collector - The activity collectorpublic static <T> T createClientProxy(String intfName, Object caller, T callee)
T - Client typeintfName - The interface definition for the component being invokedcaller - The callercallee - The service componentpublic static <T> T createClientProxy(Class<T> intf, Object caller, T callee)
T - Client typeintf - The interface definition for the component being invokedcaller - The callercallee - The service componentprotected static Class<?> getDefinedException(Method method, Throwable t)
method - The methodt - The exceptionpublic static Object createServiceProxy(String intfName, Object callee)
intfName - The interface name for the component being invokedcallee - The service componentpublic static Object createServiceProxy(Class<?> intf, Object callee)
intf - The interface for the component being invokedcallee - The service componentCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.