org.jboss.dependency.spi.dispatch
Interface InvokeDispatchContext

All Superinterfaces:
AttributeDispatchContext
All Known Subinterfaces:
KernelControllerContext, LifecycleDispatchContext
All Known Implementing Classes:
AbstractKernelControllerContext, BeanKernelRegistryEntry, UnmodifiableKernelControllerContext

public interface InvokeDispatchContext
extends AttributeDispatchContext

The API similar to the DynamicMBean API where there are methods to get/set Properties/Attributes and invoke on methods/operations with each context knowing how to do this, e.g. KernelControllerContext -> Configurator ServiceControllerContext -> MBeanServer

Author:
Ales Justin

Method Summary
 ClassLoader getClassLoader()
          Get context's classloader.
 Object invoke(String name, Object[] parameters, String[] signature)
          Invoke method / operation
 
Methods inherited from interface org.jboss.dependency.spi.dispatch.AttributeDispatchContext
get, set
 

Method Detail

invoke

Object invoke(String name,
              Object[] parameters,
              String[] signature)
              throws Throwable
Invoke method / operation

Parameters:
name - method name
parameters - parameter values
signature - method's parameter types / signatures
Returns:
inovocation's return object
Throws:
Throwable - for any error

getClassLoader

ClassLoader getClassLoader()
                           throws Throwable
Get context's classloader. Used when determining type info for parameter and getting the parameter actual value.

Returns:
context's classloader
Throws:
Throwable - for any error


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.