Package jadex.platform.service.wrapper
Interface IJavaWrapperService
-
- All Known Implementing Classes:
JavaWrapperAgent
public interface IJavaWrapperService
Service to execute Java programs with a main method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IFuture<java.lang.Void>
executeJava(IResourceIdentifier rid, java.lang.String[] args)
Execute a plain Java program from a jar as given by a resource identifier.IFuture<java.lang.Void>
executeJava(java.lang.Class<?> clazz, java.lang.String[] args)
Execute a plain Java program as given by its main class.IFuture<java.lang.Void>
executeJava(java.lang.String jarfile, java.lang.String[] args)
Execute a plain Java program from a jar as given by a file name.
-
-
-
Method Detail
-
executeJava
IFuture<java.lang.Void> executeJava(java.lang.Class<?> clazz, java.lang.String[] args)
Execute a plain Java program as given by its main class.- Parameters:
clazz
- The class to be executed as Java program.args
- The arguments to the main method.- Returns:
- A future indication successful execution (result: null) or failure (exception).
-
executeJava
IFuture<java.lang.Void> executeJava(java.lang.String jarfile, java.lang.String[] args)
Execute a plain Java program from a jar as given by a file name. Uses the main class name as specified in the manifest.- Parameters:
jarfile
- File name of a jar file.args
- The arguments to the main method.- Returns:
- A future indication successful execution (result: null) or failure (exception).
-
executeJava
IFuture<java.lang.Void> executeJava(IResourceIdentifier rid, java.lang.String[] args)
Execute a plain Java program from a jar as given by a resource identifier. Uses the main class name as specified in the manifest.- Parameters:
rid
- The resource identifier for the jar (global rid for maven artifact id, local rid for local file url).args
- The arguments to the main method.- Returns:
- A future indication successful execution (result: null) or failure (exception).
-
-