Examples of Application


Examples of org.springframework.richclient.application.Application

        if (startupContext == null) {
            displaySplashScreen(rootApplicationContext);
        }

        final Application application;

        try {
            application = (Application) rootApplicationContext.getBean(APPLICATION_BEAN_ID, Application.class);
        } catch (NoSuchBeanDefinitionException e) {
            throw new IllegalArgumentException(
                    "A single bean definition with id " + APPLICATION_BEAN_ID + ", of type " + Application.class.getName() + " must be defined in the main application context",
                    e);
        }

        try {
            // To avoid deadlocks when events fire during initialization of some swing components
            // Possible to do: in theory not a single Swing component should be created (=modified) in the launcher thread...
            SwingUtilities.invokeAndWait(new Runnable() {

                public void run() {
                    application.start();
                }
            });
        } catch (InterruptedException e) {
            logger.warn("Application start interrupted", e);
        } catch (InvocationTargetException e) {
View Full Code Here

Examples of org.switchyard.admin.Application

     *
     * @param application application to add
     * @return reference to this admin object
     */
    public BaseSwitchYard addApplication(Application application) {
        Application existing = _applications.putIfAbsent(application.getName(), application);
        if (existing == null) {
            _services.addAll(application.getServices());
            _references.addAll(application.getReferences());
        }
        return this;
View Full Code Here

Examples of org.switchyard.quickstarts.demo.txpropagation.Application

    @Test
    public void acceptValidOffer() throws Exception {
        Car car = new Car();
        car.setPrice(500.00);
        Application app = new Application();
        app.setCreditScore(650);
        Offer offer = new Offer();
        offer.setCar(car);
        offer.setApplication(app);
        offer.setAmount(450.00);

        // configure our proxy for the service reference
        testKit.replaceService("DealLogger");
        MockHandler creditService = testKit.replaceService("CreditCheckService");
        Application reply = new Application();
        reply.setApproved(true);
        creditService.replyWithOut(reply);

        // Invoke the service
        Deal deal = service.operation("offer").sendInOut(offer)
            .getContent(Deal.class);
View Full Code Here

Examples of org.ytreza.app.noterex.application.Application

  /**
   * @param args
   */
  public static void main(String[] args) {
    Application application = Application.getApplication();
    application.run(args);
  }
View Full Code Here

Examples of org.zkybase.cmdb.dto.Application

    assertNull(actualEntity);
  }
 
  @Test
  public void toDto() {
    Application actualDto = applicationMapper.toDto(applicationEntity);
    assertNotNull(actualDto);
    assertEquals(APPLICATION_ID, actualDto.getId());
    assertEquals(APPLICATION_NAME, actualDto.getName());
  }
View Full Code Here

Examples of org.zkybase.model.Application

  /* (non-Javadoc)
   * @see org.zkybase.web.controller.AbstractEntityNoFormController#doGetDetails(java.lang.Long, org.springframework.ui.Model)
   */
  @Override
  protected Application doGetDetails(Long id, Model model) {
    Application app = getService().findOne(id);
    List<Farm> farms = CollectionsUtil.asSortedList(farmService.findByApplication(app));
    model.addAttribute(farms);
    return app;
  }
View Full Code Here

Examples of play.Application

* The value returned is a {@code Promise<Response>}, and you should use Play's asynchronous mechanisms to use this response.
*/
public class WS {

    public static WSClient client() {
        Application app = play.Play.application();
        return app.injector().instanceOf(WSClient.class);
    }
View Full Code Here

Examples of play.api.Application

public class TickJob {
   
    public static void main(String[] args) {

        Application application = new DefaultApplication(new File(args[0]), TickJob.class.getClassLoader(), null, Mode.Prod());

        Play.start(application);

        Tick tick = new Tick("Hello from the TickJob");
        tick.save();
View Full Code Here

Examples of semestralka.Application

                }catch(Exception ex){}
                System.exit(0);
            }
        });
       
        app = new Application();
       
        /*Initialize items*/
        this.log = new LogPanel();
        this.input = new JTextField();
        this.cvs = new JScrollPane(new ImageHolder());
View Full Code Here

Examples of slash.navigation.gui.Application

        }, "NotificationUpdater");
        notificationUpdater.start();
    }

    private JFrame getFrame() {
        Application application = Application.getInstance();
        if (!(application instanceof SingleFrameApplication))
            return null;
        return ((SingleFrameApplication) application).getFrame();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.