Examples of create()


Examples of ptolemy.vergil.toolbox.MenuItemFactory.create()

                    .getFullName());
            Iterator i = menuItemFactoryList().iterator();

            while (i.hasNext()) {
                MenuItemFactory factory = (MenuItemFactory) i.next();
                factory.create(menu, namedObj);
            }

            menu.show(tree, e.getX(), e.getY());
            e.consume();
        }

Examples of quickfix.DefaultSessionFactory.create()

        settings.setString(Session.SETTING_START_TIME, "00:00:00");
        settings.setString(Session.SETTING_END_TIME, "00:00:00");
        settings.setString(SessionFactory.SETTING_CONNECTION_TYPE, SessionFactory.ACCEPTOR_CONNECTION_TYPE);
        settings.setBool(Session.SETTING_USE_DATA_DICTIONARY, false);
       
        return factory.create(sessionID, settings);
    }
   
    public static QuickfixjEngine createEngine() throws ConfigError, FieldConvertError, IOException, JMException {      
        SessionID sessionID = new SessionID("FIX.4.4:SENDER->TARGET");

Examples of quickfix.MessageStoreFactory.create()

    public static Session createSession(SessionID sessionID) throws ConfigError, IOException {
        MessageStoreFactory mockMessageStoreFactory = Mockito.mock(MessageStoreFactory.class);
        MessageStore mockMessageStore = Mockito.mock(MessageStore.class);
        Mockito.when(mockMessageStore.getCreationTime()).thenReturn(new Date());
       
        Mockito.when(mockMessageStoreFactory.create(sessionID)).thenReturn(mockMessageStore);

        DefaultSessionFactory factory = new DefaultSessionFactory(
            Mockito.mock(Application.class),
            mockMessageStoreFactory,
            Mockito.mock(LogFactory.class));

Examples of rabbit.ui.internal.dialogs.GroupByDialog.create()

  @Override
  public void runWithEvent(Event event) {
    Shell parentShell = event.display.getActiveShell();
    GroupByDialog dialog = new GroupByDialog(parentShell);
    dialog.create();
    dialog.getShell().setSize(400, 400);

    dialog.setSelectedCategories(provider.getSelected());
    dialog.setUnSelectedCategories(provider.getUnselected());

Examples of railo.runtime.orm.ORMSession.create()

    return call(pc, name, null);
  }
 
  public static Object call(PageContext pc, String name,Struct properties) throws PageException {
    ORMSession session=ORMUtil.getSession(pc);
    if(properties==null)return session.create(pc,name);
   
    Component entity = session.create(pc,name);
    setPropeties(pc,entity,properties,false);
    return entity;
   

Examples of railo.runtime.orm.hibernate.HibernateORMEngine.create()

  public final Object instantiate() {
    try {
      PageContext pc = CommonUtil.pc();
      HibernateORMSession session=HibernateUtil.getORMSession(pc,true);
      HibernateORMEngine engine=(HibernateORMEngine) session.getEngine();
      Component c = engine.create(pc, session, entityName, true);
      CommonUtil.setEntity(c,true);
      return c;//new CFCProxy(c);
    }
    catch (PageException pe) {
      throw new HibernatePageException(pe);

Examples of retrofit.RestAdapter.create()

    RestAdapter restAdapter = new RestAdapter.Builder()
        .setEndpoint(mySonarServerConfig.getHostUrl())
        .setLogLevel(RestAdapter.LogLevel.FULL)
        .build();

    final Rules rules = restAdapter.create(Rules.class);
    final Rule rule = rules.show(key, null).rule;
    return rule;
  }

  public List<Resource> getAllProjectsAndModules() {

Examples of ro.isdc.wro.config.factory.PropertiesAndFilterConfigWroConfigurationFactory.create()

    };
    victim.setWroConfigurationFactory(configurationFactory);
    victim.setWroManagerFactory(null);
    victim.init(mockFilterConfig);
    Context.unset();
    Context.set(Context.webContext(mockRequest, mockResponse, mockFilterConfig), configurationFactory.create());
    final WroManagerFactory factory = victim.getWroManagerFactory();
    assertEquals(1, factory.create().getProcessorsFactory().getPreProcessors().size());
  }

  @Test

Examples of ro.isdc.wro.manager.factory.BaseWroManagerFactory.create()

    victim = new LessCssProcessor();
    WroTestUtils.createInjector().inject(victim);
    victim.process(null, new StringReader(noImports), actual);

    final String expected = IOUtils.toString(managerFactory.create().getUriLocatorFactory().locate(
        String.format("classpath:%s/expected/import.cssx", baseFolder)));
    assertEquals(expected, actual.toString());
  }

  @Test

Examples of ro.isdc.wro.manager.factory.WroManagerFactory.create()

    WroModelFactory modelFactory = mock(WroModelFactory.class);

    WroModel modelFromTest = new WroModel();

    when(servletContextAttributeHelper.getManagerFactory()).thenReturn(managerFactory);
    when(managerFactory.create()).thenReturn(manager);
    when(manager.getModelFactory()).thenReturn(modelFactory);
    when(modelFactory.create()).thenReturn(modelFromTest);

    WroTagLibConfig wroTagLibConfig = new WroTagLibConfig(this.servletContext);
    WroModel modelFromConfig = wroTagLibConfig.getModel(servletContextAttributeHelper);
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.