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-11/jomc-tools")
public class DefaultInvocation
extends Object
implements org.jomc.spi.Invocation

Default invocation.

Version:
$Id: DefaultInvocation.java 1102 2009-12-07 03:01:58Z 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 CLASSLOADER_KEY
          Constant for the context key of the ClassLoader corresponding to the modules 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 MODULES_KEY
          Constant for the context key of the Modules corresponding to the object 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()
           
 ClassLoader getClassLoader()
          Gets the class loader corresponding to the modules of this invocation from the context of this invocation.
 Map getContext()
           
 org.jomc.model.Instance getInstance()
          Gets the instance of the object of this invocation from the context of this invocation.
 Method getMethod()
           
 org.jomc.model.Modules getModules()
          Gets the modules corresponding to the object of this invocation from the context of this invocation.
 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.


MODULES_KEY

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


CLASSLOADER_KEY

public static final String CLASSLOADER_KEY
Constant for the context key of the ClassLoader corresponding to the modules 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-11/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

getModules

public org.jomc.model.Modules getModules()
Gets the modules corresponding to the object of this invocation from the context of this invocation.

Returns:
The modules corresponding to the object of this invocation from the context of this invocation or null.
See Also:
MODULES_KEY

getClassLoader

public ClassLoader getClassLoader()
Gets the class loader corresponding to the modules of this invocation from the context of this invocation.

Returns:
The class loader corresponding to the modules of this invocation from the context of this invocation or null.
See Also:
CLASSLOADER_KEY


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