|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@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.
Method Summary | |
---|---|
Object |
invoke(Invocation invocation)
Performs a method invocation on an object. |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |