Package org.apache.felix.service.command
Interface Function
-
- All Known Implementing Classes:
Closure
,CommandProxy
public interface Function
A Function is a a block of code that can be executed with a set of arguments, it returns the result object of executing the script.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
execute(CommandSession session, java.util.List<java.lang.Object> arguments)
Execute this function and return the result.
-
-
-
Method Detail
-
execute
java.lang.Object execute(CommandSession session, java.util.List<java.lang.Object> arguments) throws java.lang.Exception
Execute this function and return the result.- Returns:
- the result from the execution.
- Throws:
java.lang.Exception
- if anything goes terribly wrong
-
-