Examples of create()


Examples of org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.InternalConnectionFactory.create()

        final ConfigData configData = new ConfigData();
        final InternalConnectionFactory internalConnFactory = new InternalConnectionFactory(
            configData, connFactory);

        final HttpRoute route = new HttpRoute(new HttpHost("somehost"));
        internalConnFactory.create(route, iosession);

        Mockito.verify(sslStrategy, Mockito.never()).upgrade(Mockito.eq(new HttpHost("somehost")),
                Mockito.<IOSession>any());
        Mockito.verify(connFactory).create(Mockito.same(iosession), Mockito.<ConnectionConfig>any());
    }

Examples of org.apache.http.nio.conn.SchemeIOSessionFactory.create()

            throw new IOException("Unsupported scheme: " + host.getSchemeName());
        }
        synchronized (managedConn) {
            final CPoolEntry entry = CPoolProxy.getPoolEntry(managedConn);
            final ManagedNHttpClientConnection conn = entry.getConnection();
            final IOSession currentSession = sf.create(host, conn.getIOSession());
            conn.bind(currentSession);
        }
    }

    public void upgrade(

Examples of org.apache.isis.applib.services.command.spi.CommandService.create()

            return;
        }
        final CommandService commandService = getServiceOrNull(CommandService.class);
        final Command command =
                commandService != null
                    ? commandService.create()
                    : new CommandDefault();
        commandContext.setCommand(command);

        if(command.getTimestamp() == null) {
            command.setTimestamp(Clock.getTimeAsJavaSqlTimestamp());

Examples of org.apache.isis.applib.services.memento.MementoService.create()

    public String memento(Object viewModelPojo) {

        final MementoService mementoService = servicesInjector.lookupService(MementoService.class);
        final BookmarkService bookmarkService = servicesInjector.lookupService(BookmarkService.class);

        final MementoService.Memento memento = mementoService.create();

        // this is horrible, but there's a catch-22 here...
        // we need an adapter in order to query the state of the object via the metamodel, on the other hand
        // we can't create an adapter without the identifier, which is what we're trying to derive
        // so... we create a temporary transient adapter, use it to wrap this adapter and interrogate this pojo,

Examples of org.apache.isis.core.runtime.services.memento.MementoServiceDefault.create()

        public void hintsToPageParameters(Map<String,String> hints, PageParameters pageParameters) {
            if(hints.isEmpty()) {
                return;
            }
            MementoServiceDefault vms = new MementoServiceDefault();
            Memento memento = vms.create();
            Set<String> hintKeys = hints.keySet();
            for (String key : hintKeys) {
                String safeKey = key.replace(':', '_');
                Serializable value = hints.get(key);
                memento.set(safeKey, value);

Examples of org.apache.jackrabbit.mongomk.impl.SimpleNodeScenario.create()

public class MongoMKGetHeadRevisionTest extends BaseMongoMKTest {

    @Test
    public void simple() throws Exception {
        SimpleNodeScenario scenario = new SimpleNodeScenario(mk);
        String rev1 = scenario.create();

        String rev2 = mk.getHeadRevision();
        assertEquals(rev1, rev2);

        String rev3 = scenario.deleteA();

Examples of org.apache.jackrabbit.mongomk.scenario.SimpleNodeScenario.create()

public class GetHeadRevisionCommandMongoTest extends BaseMongoTest {

    @Test
    public void testGeadHeadRevisionSimple() throws Exception {
        SimpleNodeScenario scenario = new SimpleNodeScenario(mongoConnection);
        String revisionId = scenario.create();

        GetHeadRevisionCommandMongo command = new GetHeadRevisionCommandMongo(mongoConnection);
        String revisionId2 = command.execute();
        assertTrue(revisionId.equals(revisionId2));

Examples of org.apache.jackrabbit.oak.benchmark.util.OakIndexUtils.PropertyIndex.create()

            Node level1Node = testNode.addNode("level1_"+i, NODE_TYPE);
        }
        session.save();
        PropertyIndex index = new OakIndexUtils.PropertyIndex();
        index.property("indexedProperty");
        index.create(session);
        session.save();
       
        for(int i=0; i<THREAD_COUNT-1; i++) {
            addBackgroundJob(new Writer());
        }

Examples of org.apache.jackrabbit.oak.plugins.document.impl.SimpleNodeScenario.create()

    }

    @Test
    public void afterDelete() throws Exception {
        SimpleNodeScenario scenario = new SimpleNodeScenario(mk);
        scenario.create();

        JSONObject root = parseJSONObject(mk.getNodes("/", null, 0, 0, -1, null));
        assertPropertyValue(root, ":childNodeCount", 1L);

        JSONObject a = parseJSONObject(mk.getNodes("/a", null, 0, 0, -1, null));

Examples of org.apache.jackrabbit.oak.plugins.document.util.MapFactory.create()

        MapFactory tmpFactory = null;
        Map<String, Revision> pending;
        try {
            if (map.size() > IN_MEMORY_SIZE_LIMIT) {
                tmpFactory = MapFactory.createFactory();
                pending = tmpFactory.create(PathComparator.INSTANCE);
            } else {
                pending = Maps.newTreeMap(PathComparator.INSTANCE);
            }
            pending.putAll(map);
        } finally {
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.