org.jomc.ri
Class DefaultInvocation

Package class diagram package DefaultInvocation
java.lang.Object
  extended by org.jomc.ri.DefaultInvocation
All Implemented Interfaces:
org.jomc.spi.Invocation

@Generated(value="org.jomc.tools.JavaSources",
           comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-8/jomc-tools")
public class DefaultInvocation
extends Object
implements org.jomc.spi.Invocation

Default invocation.

Version:
$Id: DefaultInvocation.java 968 2009-11-18 06:08:28Z schulte2005 $
Author:
Christian Schulte 1.0
See Also:
DefaultInvoker

Field Summary
static String ARGUMENTS_KEY
          Constant for the context key of the Object[] arguments of this invocation.
static String INSTANCE_KEY
          Constant for the context key of the Instance corresponding to the object of this invocation.
static String METHOD_KEY
          Constant for the context key of the Method of this invocation.
static String OBJECT_KEY
          Constant for the context key of the Object of this invocation.
static String RESULT_KEY
          Constant for the context key of the result Object of this invocation.
 
Constructor Summary
DefaultInvocation()
          Creates a new DefaultInvocation instance.
DefaultInvocation(org.jomc.spi.Invocation invocation)
          Creates a new DefaultInvocation instance taking an invocation to initialize the instance with.
 
Method Summary
 Object[] getArguments()
           
 Map getContext()
           
 org.jomc.model.Instance getInstance()
          Gets the instance of the object of this invocation from the context of this invocation.
 Method getMethod()
           
 Object getObject()
           
 Object getResult()
           
 void setResult(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_KEY

public static final String OBJECT_KEY
Constant for the context key of the Object of this invocation.


METHOD_KEY

public static final String METHOD_KEY
Constant for the context key of the Method of this invocation.


ARGUMENTS_KEY

public static final String ARGUMENTS_KEY
Constant for the context key of the Object[] arguments of this invocation.


RESULT_KEY

public static final String RESULT_KEY
Constant for the context key of the result Object of this invocation.


INSTANCE_KEY

public static final String INSTANCE_KEY
Constant for the context key of the Instance corresponding to the object of this invocation.

Constructor Detail

DefaultInvocation

public DefaultInvocation(org.jomc.spi.Invocation invocation)
Creates a new DefaultInvocation instance taking an invocation to initialize the instance with.

Parameters:
invocation - The invocation to initialize the instance with.

DefaultInvocation

@Generated(value="org.jomc.tools.JavaSources",
           comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-8/jomc-tools")
public DefaultInvocation()
Creates a new DefaultInvocation instance.

Method Detail

getContext

public Map getContext()
Specified by:
getContext in interface org.jomc.spi.Invocation

getObject

public Object getObject()
Specified by:
getObject in interface org.jomc.spi.Invocation

getMethod

public Method getMethod()
Specified by:
getMethod in interface org.jomc.spi.Invocation

getArguments

public Object[] getArguments()
Specified by:
getArguments in interface org.jomc.spi.Invocation

getResult

public Object getResult()
Specified by:
getResult in interface org.jomc.spi.Invocation

setResult

public void setResult(Object value)
Specified by:
setResult in interface org.jomc.spi.Invocation

getInstance

public org.jomc.model.Instance getInstance()
Gets the instance of the object of this invocation from the context of this invocation.

Returns:
The instance of the object of this invocation from the context of this invocation or null.
See Also:
INSTANCE_KEY


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.