Package net.charabia.jsmoothgen.application

Examples of net.charabia.jsmoothgen.application.JSmoothModelBean$Listener


        jsmodel.setJarLocation(jarfile);
    }
   
    private void setModelUsejar(boolean b) {
        System.out.println("[DEBUG] Setting use embedded jar to: " + b);
        JSmoothModelBean jsmodel = getApplication().getModelBean();
        jsmodel.setEmbeddedJar(b);
    }
View Full Code Here


        jsmodel.setEmbeddedJar(b);
    }
   
    private void setModelArguments(String args) {
        System.out.println("[DEBUG] Setting argument to: " + args);
        JSmoothModelBean jsmodel = getApplication().getModelBean();
        jsmodel.setArguments(args);
    }
View Full Code Here

        setImage(JSmoothResources.IMG_SWITCHER_APPLICATION);
        setToolTip("Java Application");
    }

    public void load() {
        JSmoothModelBean jsmodel = getApplication().getModelBean();
        String[] classpath = jsmodel.getClassPath();
        if (classpath == null) classpath = new String[0];
        this.classpath.setItems(classpath);
       
        boolean usejar = jsmodel.getEmbeddedJar();
        this.usejar.setSelection(usejar);
        LISTENER_USEJAR.widgetSelected(null);
       
        String mainclass = jsmodel.getMainClassName();
        if (mainclass == null) mainclass = "";
        this.mainclass.setText(mainclass);
       
        String jar = jsmodel.getJarLocation();
        if (jar == null) jar = "";
        this.jar.setText(jar);
       
        String args = jsmodel.getArguments();
        if (args == null) args = "";
        this.args.setText(args);
    }
View Full Code Here

       
        return top;
    }

    public void load() {
        JSmoothModelBean jsmodel = getApplication().getModelBean();
    }
View Full Code Here

        this.skeletonList = new SkeletonList(new File("skeletons"));
    }
   
    public void newProject() {
        // Create a new empty JSmoothModelBean
        jsmodel = new JSmoothModelBean();
        jsmodel.setSkeletonName(getInitialSkeletonName());
        setSkeletonProperties(getInititalSkeletonProperties());
        jsmodel.setExecutableName("");
        jsmodel.setArguments("");
        jsmodel.setBundledJVMPath("");
View Full Code Here

    }
   
    public boolean openProject(String projectfile) {
        System.out.println("[DEBUG] Opening project : " + projectfile);
        File file = new File(projectfile);
        JSmoothModelBean jsmodel = null;
        try {
            jsmodel = JSmoothModelPersistency.load(file);
        } catch (IOException e) {
            System.out.println("[ERROR] Failed opening project : " + e.getMessage());
            return false;
View Full Code Here

        final XMLBeansModel model = new XMLBeansModel(Factory.parse(is).getJbossesb());
       
        final List<Listener> awareListeners = model.getESBAwareListeners() ;
        assertEquals("Listener count", 1, awareListeners.size()) ;
       
        final Listener listener = awareListeners.get(0) ;
        assertTrue("JmsListener", listener instanceof JmsListener) ;
       
        final Document doc = YADOMUtil.createDocument() ;
        final Element root = doc.createElement("root") ;
        final Element listenerElement = JmsListenerMapper.map(root, (JmsListener)listener, model) ;
View Full Code Here

    JmsMessageFilter listenerDestination = awareListener.getJmsMessageFilter();
    assertEquals("queue/B", listenerDestination.getDestName());
    assertEquals(JmsMessageFilter.DestType.TOPIC, listenerDestination.getDestType());
    assertEquals("service='Reconciliation'", listenerDestination.getSelector());

    Listener untypedAwareListener = awareListeners.get(1);
    assertEquals("Bank-Listener-Generic", untypedAwareListener.getName());
    assertEquals("my-generic-bus", untypedAwareListener.getBusidref());
    assertTrue(!untypedAwareListener.getIsGateway());

    Service gatewayService = model.getService(gatewayListener);
    Service awareService = model.getService(awareListener);
    assertSame(gatewayService, awareService);
    assertEquals("Bank", awareService.getCategory());
View Full Code Here

        final XMLBeansModel model = new XMLBeansModel(Factory.parse(is).getJbossesb());
       
        final List<Listener> awareListeners = model.getESBAwareListeners() ;
        assertEquals("Listener count", 1, awareListeners.size()) ;
       
        final Listener listener = awareListeners.get(0) ;
        assertTrue("JmsListener", listener instanceof JmsListener) ;
       
        final Document doc = YADOMUtil.createDocument() ;
        final Element root = doc.createElement("root") ;
        final Element listenerElement = JmsListenerMapper.map(root, (JmsListener)listener, model) ;
View Full Code Here

    JmsMessageFilter listenerDestination = awareListener.getJmsMessageFilter();
    assertEquals("queue/B", listenerDestination.getDestName());
    assertEquals(JmsMessageFilter.DestType.TOPIC, listenerDestination.getDestType());
    assertEquals("service='Reconciliation'", listenerDestination.getSelector());

    Listener untypedAwareListener = awareListeners.get(1);
    assertEquals("Bank-Listener-Generic", untypedAwareListener.getName());
    assertEquals("my-generic-bus", untypedAwareListener.getBusidref());
    assertTrue(!untypedAwareListener.getIsGateway());

    Service gatewayService = model.getService(gatewayListener);
    Service awareService = model.getService(awareListener);
    assertSame(gatewayService, awareService);
    assertEquals("Bank", awareService.getCategory());
View Full Code Here

TOP

Related Classes of net.charabia.jsmoothgen.application.JSmoothModelBean$Listener

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.