org.rribbit
Class ListenerObject

java.lang.Object
  extended by org.rribbit.ListenerObject

public class ListenerObject
extends Object

This class represents an executable Listener. All the details of the Listener annotation, the method that it's declared on and the target object are stored, so that RRiBbit has a ready-made object to execute when it receives a request that matches a Listener. Mainly used for internal processing of requests and responses, not for users of the RRiBbit library.

Author:
G.J. Schouten

Constructor Summary
ListenerObject()
           
 
Method Summary
 List<String> getHints()
           
 Method getMethod()
           
 Class<?> getReturnType()
           
 Object getTarget()
           
 void setHints(List<String> hints)
           
 void setMethod(Method method)
           
 void setReturnType(Class<?> returnType)
           
 void setTarget(Object target)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListenerObject

public ListenerObject()
Method Detail

getTarget

public Object getTarget()

setTarget

public void setTarget(Object target)

getMethod

public Method getMethod()

setMethod

public void setMethod(Method method)

getReturnType

public Class<?> getReturnType()

setReturnType

public void setReturnType(Class<?> returnType)

getHints

public List<String> getHints()

setHints

public void setHints(List<String> hints)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 RRiBbit.org. All Rights Reserved.