View Javadoc

1   /**
2    * Copyright 2005-2006 the original author or authors.
3    *
4    * Licensed under the Gnu General Pubic License, Version 2.0 (the
5    * "License"); you may not use this file except in compliance with
6    * the License. You may obtain a copy of the License at
7    *
8    *      http://www.opensource.org/licenses/gpl-license.php
9    *
10   * This program is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13   * See the Gnu General Public License for more details.
14   */
15  package org.figure8.join.services.scripting.jsr223;
16  
17  import org.figure8.join.services.scripting.ScriptLauncherJMSAdapter;
18  import org.figure8.join.services.scripting.ScriptLauncher;
19  /**
20   * This is an extension of {@link ScriptLauncherJMSAdapter} that uses
21   * a {@link JSR223ScriptLauncher}.
22   * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
23   * @version $Revision: 1.1 $
24   */
25  public class JSR223ScriptLauncherJMSAdapter extends ScriptLauncherJMSAdapter{
26  
27     // Attributes ---------------------------------------------------------------
28  
29     /** <code>launcher</code>: JSR223 script launcher instance */
30     private JSR223ScriptLauncher launcher = new JSR223ScriptLauncher();
31  
32  
33     // Implementation of ScriptLauncherJMSAdapter -------------------------------
34  
35     /** @return A JSR223ScriptLauncher instance */
36     public ScriptLauncher getScriptLauncher(){
37        return new JSR223ScriptLauncher();
38     }
39  }