org.jomc.spi
Interface Invoker

Package class diagram package Invoker

@Generated(value="org.jomc.tools.SourceFileProcessor 1.2",
           comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2")
public interface Invoker

Invokes objects.

Identifier:
org.jomc.spi.Invoker
Multiplicity:
One
Scope:
None

Version:
1.0
Author:
Christian Schulte 1.0
See Also:
getObject(Invoker.class), getObject(Invoker.class, "implementation name"), org.jomc.ObjectManagerFactory

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-2012 The JOMC Project. All Rights Reserved.Get JOMC at SourceForge.net. Fast, secure and Free Open Source software downloads
Please note that this documentation is maintained by non-native english speaking authors. As such, you may encounter phrases or wordings which seem imprecise or may even have a totally different meaning to native english speaking readers than what the individual author was trying to express. If you are a native english speaking reader and find any such phrases or wordings we kindly ask you to send an email to the corresponding author and help us improve this documentation in order to avoid misunderstandings. You will find the authors' email addresses at the top of each class. Please accept our apologies for any inconvenience caused.