LocalArgController Class Reference

Collaboration diagram for LocalArgController:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static boolean isLocalArg (Class param)
static void registerLocalArgResolver (Class argClazz, Class contextInterface, LocalArgResolver argResolver)
static Object resolveLocalArg (Object context[], Class param) throws UnmarshallException
static void unregisterLocalArgResolver (Class argClazz, Class contextInterface, LocalArgResolver argResolver)

Static Private Attributes

static Map localArgResolverMap = new HashMap()
static final Logger log


Detailed Description

Controls registration and lookup of LocalArgResolver classes.

Member Function Documentation

static boolean isLocalArg ( Class  param  )  [static]

Determine if an argument of the specified class type can be resolved to a local argument that is filled in on the server prior to being invoked.

Parameters:
param local argument class.
Returns:
true if the class can be resolved to a local argument.

static void registerLocalArgResolver ( Class  argClazz,
Class  contextInterface,
LocalArgResolver  argResolver 
) [static]

Registers a Class to be removed from the exported method signatures and instead be resolved locally using context information from the transport.

TODO: make the order that the variables are given to this function the same as the variables are given to LocalArgResolverData

Parameters:
argClazz The class to be resolved locally
argResolver The user defined class that resolves the and returns the method argument using transport context information
contextInterface The type of transport Context object the callback is interested in eg. HttpServletRequest.class for the servlet transport

static Object resolveLocalArg ( Object  context[],
Class  param 
) throws UnmarshallException [static]

Using the caller's context, resolve a given method call parameter to a local argument.

Parameters:
context callers context. In an http servlet environment, this will contain the servlet request and response objects.
param class type parameter to resolve to a local argument.
Returns:
the run time instance that is resolved, to be used when calling the method.
Exceptions:
UnmarshallException if there if a failure during resolution.

static void unregisterLocalArgResolver ( Class  argClazz,
Class  contextInterface,
LocalArgResolver  argResolver 
) [static]

Unregisters a LocalArgResolver.

Parameters:
argClazz The previously registered local class
argResolver The previously registered LocalArgResolver object
contextInterface The previously registered transport Context interface.


Member Data Documentation

Map localArgResolverMap = new HashMap() [static, private]

Key: argClazz (ie Class), Value: HashSet<LocalArgResolverData>

final Logger log [static, private]

Initial value:

 LoggerFactory
      .getLogger(LocalArgController.class)
The logger for this class


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:38 2012 for Project Wonder by  doxygen 1.5.8