org.jboss.seam.remoting
Class Call

java.lang.Object
  extended by org.jboss.seam.remoting.Call

public class Call
extends Object

Author:
Shane Bryzak

Field Summary
static Annotation[] EMPTY_ANNOTATIONS
           
 
Constructor Summary
Call(javax.enterprise.inject.spi.BeanManager beanManager, String beanName, String qualifiers, String methodName)
           
 
Method Summary
 void addParameter(Wrapper param)
          Add a parameter to this call.
 void execute()
          Execute this call
 List<String> getConstraints()
          Returns the object graph constraints annotated on the method that is called.
 CallContext getContext()
          Return the call context.
 Throwable getException()
          Returns the exception thrown by the invoked method.
 Object getResult()
          Returns the result of this call.
 void setConstraints(List<String> constraints)
          Required for unit tests
 void setResult(Object result)
          Required for unit tests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ANNOTATIONS

public static Annotation[] EMPTY_ANNOTATIONS
Constructor Detail

Call

public Call(javax.enterprise.inject.spi.BeanManager beanManager,
            String beanName,
            String qualifiers,
            String methodName)
Method Detail

getContext

public CallContext getContext()
Return the call context.

Returns:
CallContext

getException

public Throwable getException()
Returns the exception thrown by the invoked method. If no exception was thrown, will return null.


addParameter

public void addParameter(Wrapper param)
Add a parameter to this call.

Parameters:
param -

getResult

public Object getResult()
Returns the result of this call.

Returns:
Wrapper

setResult

public void setResult(Object result)
Required for unit tests

Parameters:
result -

getConstraints

public List<String> getConstraints()
Returns the object graph constraints annotated on the method that is called.

Returns:
List The constraints

setConstraints

public void setConstraints(List<String> constraints)
Required for unit tests

Parameters:
constraints -

execute

public void execute()
             throws Exception
Execute this call

Throws:
Exception


Copyright © 2011 Seam Framework. All Rights Reserved.