launcher/api/src/main/java/org/apidesign/bck2brwsr/launcher/InvocationContext.java
changeset 1908 4f4554f69892
parent 1860 4ce38f21f4cd
     1.1 --- a/launcher/api/src/main/java/org/apidesign/bck2brwsr/launcher/InvocationContext.java	Tue Jan 26 04:36:23 2016 +0100
     1.2 +++ b/launcher/api/src/main/java/org/apidesign/bck2brwsr/launcher/InvocationContext.java	Fri Mar 25 11:12:16 2016 +0100
     1.3 @@ -36,6 +36,7 @@
     1.4      private String result;
     1.5      private Throwable exception;
     1.6      String html;
     1.7 +    String[] args;
     1.8      final List<Resource> resources = new ArrayList<>();
     1.9      private int time;
    1.10  
    1.11 @@ -52,6 +53,14 @@
    1.12      public void setHtmlFragment(String html) {
    1.13          this.html = html;
    1.14      }
    1.15 +
    1.16 +    /** Arguments to pass to the invoked method.
    1.17 +     * @param args textual arguments to pass to the method
    1.18 +     * @since 0.18
    1.19 +     */
    1.20 +    public void setArguments(String... args) {
    1.21 +        this.args = args;
    1.22 +    }
    1.23      
    1.24      /** HTTP resource to be available during execution. An invocation may
    1.25       * perform an HTTP query and obtain a resource relative to the page.