Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canInvokeOn(java.lang.Class[] args)
Whether this method can be invoke on the given argumentsjava.lang.Class[]
getArgTypes()
Get the argument typesjava.lang.String
getName()
Get the namejava.lang.Object
invoke(java.lang.Object target, java.lang.Object[] args)
Invoke the function on the target object with argument args
-
-
-
Method Detail
-
invoke
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 targetargs
- the arguments- Returns:
- application specific object
- Throws:
java.lang.Exception
- if there's problem completing the invocation
-
getName
java.lang.String getName()
Get the name- Returns:
- the name
-
getArgTypes
java.lang.Class[] getArgTypes()
Get the argument types- Returns:
- the argument type
-
canInvokeOn
boolean canInvokeOn(java.lang.Class[] args)
Whether this method can be invoke on the given arguments- Returns:
- true if can invoke on the arguments
-
-