Package com.isencia.passerelle.domain.cap

Examples of com.isencia.passerelle.domain.cap.Director


     *
     * @return
     * @throws Exception
     */
    public Director createBatchDirector(final DirectorType directorType) throws Exception {
        final Director d = DirectorFactory.createNewDirector(directorType, WORKSPACE);
        batchDirector = d;
        return d;
    }
View Full Code Here


        batchDirector = d;
        return d;
    }

    public Director getBatchDirectorClone() throws CloneNotSupportedException {
        final Director d = (Director) batchDirector.clone(WORKSPACE);
        // batch directors should not appear in the cfg panels
        // GenericHMI.showModelForm(...) checks for the presence of this attribute.
        // when present : cfg panel is not created
        try {
            ((Attribute)d.getAdapter(null)).setContainer(null);
            new BossanovaDirectorAdapter(d);
            new Attribute(d, "__not_configurable");
        } catch (final Exception e) {
            e.printStackTrace();
        }
View Full Code Here

  private DirectorFactory() {
    // DO NOT USE
  }
  public static Director createNewDirector(DirectorType dType, Workspace wspace) throws Exception {
    Director result = null;
    if (DirectorType.RECORDING.equals(dType)) {
      result = new RecordingDirector(wspace);
    } else if (DirectorType.SOLEILSTD.equals(dType)) {
      result = new BasicDirector(wspace);
    }
    // Added to avoid FindBugs bug JC Pret Jan 2011
    else
    {
      throw new IllegalArgumentException("Unknown director type");
    }
    // End JCP
    // Erwin DL : this is not right. Class name has a specific purpose.
    // result.setClassName("Bossanova Director");
    result.setName("Bossanova Director");
    if(result.getAdapter(null)!=null) {
                    ((Attribute)result.getAdapter(null)).setContainer(null);
                  }
                  new BossanovaDirectorAdapter(result);
    // no longer done. System properties must be set elsewhere, e.g. in a hmi.ini file.
//    Parameter directorParam = (Parameter) result.getAttribute("Properties File", Parameter.class);
//    directorParam.setExpression(Configuration.getPasserelleConfDirectory() + "systemproperties.txt");
View Full Code Here

  private DirectorFactory() {
    // DO NOT USE
  }
  public static Director createNewDirector(DirectorType dType, Workspace wspace) throws Exception {
    Director result = null;
    if (DirectorType.RECORDING.equals(dType)) {
      result = new RecordingDirector(wspace);
    } else if (DirectorType.SOLEILSTD.equals(dType)) {
      result = new BasicDirector(wspace);
    }
    // Added to avoid FindBugs bug JC Pret Jan 2011
    else
    {
      throw new IllegalArgumentException("Unknown director type");
    }
    // End JCP
    // Erwin DL : this is not right. Class name has a specific purpose.
    // result.setClassName("Bossanova Director");
    result.setName("Bossanova Director");
    // no longer done. System properties must be set elsewhere, e.g. in a hmi.ini file.
//    Parameter directorParam = (Parameter) result.getAttribute("Properties File", Parameter.class);
//    directorParam.setExpression(Configuration.getPasserelleConfDirectory() + "systemproperties.txt");
    return result;
  }
View Full Code Here

  private DirectorFactory() {
    // DO NOT USE
  }
  public static Director createNewDirector(DirectorType dType, Workspace wspace) throws Exception {
    Director result = null;
    if (DirectorType.RECORDING.equals(dType)) {
      result = new RecordingDirector(wspace);
    } else if (DirectorType.SOLEILSTD.equals(dType)) {
      result = new BasicDirector(wspace);
    }
    // Added to avoid FindBugs bug JC Pret Jan 2011
    else
    {
      throw new IllegalArgumentException("Unknown director type");
    }
    // End JCP
    // Erwin DL : this is not right. Class name has a specific purpose.
    // result.setClassName("Bossanova Director");
    result.setName("Bossanova Director");
    if(result.getAdapter(null)!=null) {
      ((Attribute)result.getAdapter(null)).setContainer(null);
    }
    DirectorUtils.getAdapter(result, null);
    // no longer done. System properties must be set elsewhere, e.g. in a hmi.ini file.
//    Parameter directorParam = (Parameter) result.getAttribute("Properties File", Parameter.class);
//    directorParam.setExpression(Configuration.getPasserelleConfDirectory() + "systemproperties.txt");
View Full Code Here

    return parametersPanel;
  }
  private JPanel createDirectorPanel(){
    JPanel result = new JPanel(new BorderLayout());
    try {
      Director director = sequencer.createBatchDirector(DirectorType.SOLEILSTD);
      BossaNovaData.getSingleton().getApplication().renderDirectorCfgPanel(director, result);
    } catch (Exception e) {
      e.printStackTrace();
    }
    final JPanel buttonPanel = new JPanel();
View Full Code Here

   *
   * @return
   * @throws Exception
   */
  public Director createBatchDirector(final DirectorType directorType) throws Exception {
    final Director d = DirectorFactory.createNewDirector(directorType, WORKSPACE);
    batchDirector = d;
    return d;
  }
View Full Code Here

    batchDirector = d;
    return d;
  }

  public Director getBatchDirectorClone() throws CloneNotSupportedException {
    final Director d = (Director) batchDirector.clone(WORKSPACE);
    // batch directors should not appear in the cfg panels
    // GenericHMI.showModelForm(...) checks for the presence of this attribute.
    // when present : cfg panel is not created
    try {
      ((Attribute) d.getAdapter(null)).setContainer(null);
      DirectorUtils.getAdapter(d, null);
      new Attribute(d, "__not_configurable");
    } catch (final Exception e) {
      e.printStackTrace();
    }
View Full Code Here

     *
     * @return
     * @throws Exception
     */
    public Director createBatchDirector(final DirectorType directorType) throws Exception {
        final Director d = DirectorFactory.createNewDirector(directorType, WORKSPACE);
        batchDirector = d;
        return d;
    }
View Full Code Here

        batchDirector = d;
        return d;
    }

    public Director getBatchDirectorClone() throws CloneNotSupportedException {
        final Director d = (Director) batchDirector.clone(WORKSPACE);
        // batch directors should not appear in the cfg panels
        // GenericHMI.showModelForm(...) checks for the presence of this attribute.
        // when present : cfg panel is not created
        try {
            new Attribute(d, "__not_configurable");
View Full Code Here

TOP

Related Classes of com.isencia.passerelle.domain.cap.Director

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.