Examples of ApplicationFactory


Examples of org.example.utils.vaadinbridge.ApplicationFactory

    Object aliasObj = ref.getProperty(ApplicationFactory.ALIAS_NAME);
    if(aliasObj instanceof String) {
      String alias = (String) aliasObj;
      BundleContentHttpContext httpContext = new BundleContentHttpContext(ref.getBundle());
     
      ApplicationFactory factory = (ApplicationFactory) context.getService(ref);
      ApplicationFactoryServlet servlet = new ApplicationFactoryServlet(factory);
     
      try {
        httpService.registerServlet(alias, servlet, null, httpContext);
        return alias;
View Full Code Here

Examples of org.impalaframework.module.spi.ApplicationFactory

public class SimpleApplicationManagerTest extends TestCase {

    public void testGetCurrentApplication() throws Exception {
        SimpleApplicationManager manager = new SimpleApplicationManager();
        ApplicationFactory applicationFactory = createMock(ApplicationFactory.class);
        manager.setApplicationFactory(applicationFactory);
       
        Application application = createMock(Application.class);
        expect(applicationFactory.newApplication(null)).andReturn(application);
       
        replay(applicationFactory);
       
        assertNull(manager.getCurrentApplication());
       
View Full Code Here

Examples of org.mule.module.launcher.application.ApplicationFactory

    private List<DeploymentListener> deploymentListeners = new CopyOnWriteArrayList<DeploymentListener>();

    public DeploymentService(Map<Class<? extends MuleCoreExtension>, MuleCoreExtension> coreExtensions)
    {
        deployer = new DefaultMuleDeployer(this);
        appFactory = new ApplicationFactory(this, coreExtensions);
    }
View Full Code Here

Examples of org.vietspider.ui.widget.ApplicationFactory

  public Menu createMenu(Browser _browser, nsIDOMEvent event) {
    this.handler = new DocumentHandler(_browser, event);
    this.browser = _browser;

    ApplicationFactory factory = new ApplicationFactory(browser, "BrowserMenu", getClass().getName());

    menu = new Menu (browser);
   
    createLinkItem(factory);
    factory.createMenuItem(menu, SWT.SEPARATOR);

    createBrowserItem(factory);
    factory.createMenuItem(menu, SWT.SEPARATOR);

    createNodeItem(factory);
   
    factory.createMenuItem(menu, SWT.SEPARATOR);
   
    createPageItem(factory);

    nsIDOMMouseEvent mouseEvent = (nsIDOMMouseEvent)event.queryInterface (nsIDOMMouseEvent.NS_IDOMMOUSEEVENT_IID);
    menu.setLocation(mouseEvent.getScreenX (), mouseEvent.getScreenY ());
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.