org.onemind.commons.invoke
Interface InvocableFunction

All Known Implementing Classes:
AbstractInvocableFunction

public interface InvocableFunction

Represents a function that can be invoked

Version:
$Id: InvocableFunction.java,v 1.4 2004/08/27 02:59:39 thlee Exp $ $Name: $
Author:
TiongHiang Lee (thlee@onemindsoft.org)

Method Summary
 boolean canInvokeOn(java.lang.Class[] args)
          Whether this method can be invoke on the given arguments
 java.lang.Class[] getArgTypes()
          Get the argument types
 java.lang.String getName()
          Get the name
 java.lang.Object invoke(java.lang.Object target, java.lang.Object[] args)
          Invoke the function on the target object with argument args
 

Method Detail

invoke

public java.lang.Object invoke(java.lang.Object target,
                               java.lang.Object[] args)
                        throws java.lang.Exception
Invoke the function on the target object with argument args

Parameters:
target - the target
args - the arguments
Returns:
application specific object
Throws:
java.lang.Exception - if there's problem completing the invocation

getName

public java.lang.String getName()
Get the name

Returns:
the name

getArgTypes

public java.lang.Class[] getArgTypes()
Get the argument types

Returns:
the argument type

canInvokeOn

public boolean canInvokeOn(java.lang.Class[] args)
Whether this method can be invoke on the given arguments

Returns:
true if can invoke on the arguments


Copyright © 2004-2005 . All Rights Reserved.