org.atmosphere.config.managed
Class Invoker

java.lang.Object
  extended by org.atmosphere.config.managed.Invoker

public class Invoker
extends Object

Invoke a method based on Encoder and Decoder

Author:
Jeanfrancois Arcand

Constructor Summary
Invoker()
           
 
Method Summary
static Object all(List<Encoder<?,?>> encoders, List<Decoder<?,?>> decoders, Object instanceType, Object objectToInvoke, Method method)
           
static Object decode(List<Decoder<?,?>> decoders, Object instanceType)
           
static Object encode(List<Encoder<?,?>> encoders, Object objectToEncode)
           
static Object invokeMethod(Method method, Object objectToInvoke, Object... parameters)
           
static Object matchDecoder(Object instanceType, List<Decoder<?,?>> decoders)
           
static Object matchEncoder(Object instanceType, List<Encoder<?,?>> encoders)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Invoker

public Invoker()
Method Detail

decode

public static Object decode(List<Decoder<?,?>> decoders,
                            Object instanceType)

invokeMethod

public static Object invokeMethod(Method method,
                                  Object objectToInvoke,
                                  Object... parameters)

encode

public static Object encode(List<Encoder<?,?>> encoders,
                            Object objectToEncode)

all

public static Object all(List<Encoder<?,?>> encoders,
                         List<Decoder<?,?>> decoders,
                         Object instanceType,
                         Object objectToInvoke,
                         Method method)

matchDecoder

public static Object matchDecoder(Object instanceType,
                                  List<Decoder<?,?>> decoders)

matchEncoder

public static Object matchEncoder(Object instanceType,
                                  List<Encoder<?,?>> encoders)


Copyright © 2013. All Rights Reserved.