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
 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


Copyright © 2012. All Rights Reserved.