org.jomc.spi
Interface Invoker

Package class diagram package Invoker

@Generated(value="org.jomc.tools.JavaSources",
           comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools")
public interface Invoker

Invokes objects.

This specification declares a multiplicity of One. An application assembler is required to provide no more than one implementation of this specification (including none). Use of class ObjectManager is supported for getting that implementation.

 Invoker object = (Invoker) ObjectManagerFactory.getObjectManager( getClassLoader() ).getObject( Invoker.class );
 

This specification does not apply to any scope. A new object is returned whenever requested.

Version:
$Id: Invoker.java 1102 2009-12-07 03:01:58Z schulte2005 $
Author:
Christian Schulte 1.0

Method Summary
 Object invoke(Invocation invocation)
          Performs a method invocation on an object.
 

Method Detail

invoke

Object invoke(Invocation invocation)
              throws Throwable
Performs a method invocation on an object.

Parameters:
invocation - The invocation to perform.
Returns:
The return value of the invocation. If the declared return type of the method of the invocation is a primitive type, then the value returned by this method must be an instance of the corresponding primitive wrapper class; otherwise, it must be a type assignable to the declared return type of the method of the invocation. If the value returned by this method is null and the declared return type of the method of the invocation is primitive, then a NullPointerException will be thrown. If the value returned by this method is otherwise not compatible to the declared return type of the method of the invocation, a ClassCastException will be thrown.
Throws:
Throwable - The exception thrown from the method invocation. The exception's type must be assignable either to any of the exception types declared in the throws clause of the method of the invocation or to the unchecked exception types java.lang.RuntimeException or java.lang.Error. If a checked exception is thrown by this method that is not assignable to any of the exception types declared in the throws clause of the method of the invocation, then an UndeclaredThrowableException containing the exception that was thrown by this method will be thrown.
See Also:
UndeclaredThrowableException


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