@Generated(value="org.jomc.tools.SourceFileProcessor 1.3", comments="See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3") public interface Invoker
getObject(Invoker.class)
,
getObject(Invoker.class, "implementation name")
,
org.jomc.ObjectManagerFactory
Modifier and Type | Method and Description |
---|---|
Object |
invoke(Invocation invocation)
Performs a method invocation on an object.
|
Object invoke(Invocation invocation) throws Throwable
invocation
- The invocation to perform.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.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.UndeclaredThrowableException
Copyright © 2005-2012 The JOMC Project. All Rights Reserved.