Examples of create()


Examples of org.apache.commons.configuration.io.FileLocator.FileLocatorBuilder.create()

            {
                FileLocator oldLocator = fileLocator.get();
                FileLocatorBuilder builder =
                        FileLocatorUtils.fileLocator(oldLocator);
                updateBuilder(builder);
                done = fileLocator.compareAndSet(oldLocator, builder.create());
            } while (!done);
            fireLocationChangedEvent();
        }

        /**
 

Examples of org.apache.commons.configuration2.io.FileLocator.FileLocatorBuilder.create()

            {
                FileLocator oldLocator = fileLocator.get();
                FileLocatorBuilder builder =
                        FileLocatorUtils.fileLocator(oldLocator);
                updateBuilder(builder);
                done = fileLocator.compareAndSet(oldLocator, builder.create());
            } while (!done);
            fireLocationChangedEvent();
        }

        /**
 

Examples of org.apache.crunch.types.orc.TupleObjectInspector.ByteBufferObjectInspector.create()

    ByteBuffer buf = ByteBuffer.wrap(bytes);
    ByteBufferObjectInspector bboi = new ByteBufferObjectInspector();
   
    assertArrayEquals(bytes, bboi.getPrimitiveJavaObject(buf));
    assertEquals(bw, bboi.getPrimitiveWritableObject(buf));
    assertEquals(buf, bboi.create(bytes));
    assertEquals(buf, bboi.create(bw));
   
    ByteBuffer newBuf = bboi.copyObject(buf);
    assertTrue(buf != newBuf);
    assertEquals(buf, newBuf);

Examples of org.apache.curator.framework.CuratorFramework.create()

    {
        CuratorFramework client = CuratorFrameworkFactory.newClient(server.getConnectString(), new RetryOneTime(1));
        client.start();
        try
        {
            CreateBuilderImpl createBuilder = (CreateBuilderImpl)client.create();
            createBuilder.failNextCreateForTesting = true;

            final BlockingQueue<String> queue = Queues.newArrayBlockingQueue(1);
            BackgroundCallback callback = new BackgroundCallback()
            {

Examples of org.apache.cxf.factory_pattern.NumberFactory.create()

        updateAddressPort(factory, PORT);
       
        NumberService numService = new NumberService();
        ServiceImpl serviceImpl = ServiceDelegateAccessor.get(numService);
       
        W3CEndpointReference numberTwoRef = factory.create("20");
        assertNotNull("reference", numberTwoRef);
          
        Number num =  (Number)serviceImpl.getPort(numberTwoRef, Number.class);
        assertTrue("20 is even", num.isEven().isEven());
       

Examples of org.apache.cxf.frontend.ClientFactoryBean.create()

            cls = getServiceClass();
            // create client factory bean
            ClientFactoryBean factoryBean = createClientFactoryBean(cls);
            // setup client factory bean
            setupClientFactoryBean(factoryBean, cls);
            Client client = factoryBean.create();
            // setup the handlers
            setupHandlers(factoryBean, client);
            return client;
        } else {
            // create the client without service class

Examples of org.apache.cxf.frontend.ClientProxyFactoryBean.create()

        proxyFac.setServiceClass(CollectionServiceInterface.class);
        proxyFac.setDataBinding(new AegisDatabinding());
        proxyFac.setAddress("local://CollectionService");
        proxyFac.setBus(getBus());

        CollectionServiceInterface csi = (CollectionServiceInterface)proxyFac.create();
        SortedSet<String> strings = new TreeSet<String>();
        strings.add("Able");
        strings.add("Baker");
        String first = csi.takeSortedStrings(strings);
        assertEquals("Able", first);

Examples of org.apache.cxf.frontend.ServerFactoryBean.create()

        }
        // we do not need use the destination here
        sfb.setDestinationFactory(new NullDestinationFactory());
        sfb.setStart(false);

        server = sfb.create();
    }


    public void start() throws Exception {
        server.start();

Examples of org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create()

    @BeforeClass
    public static void initService() throws Exception {

        ClientServerOAuthTest.initService();
        JAXRSServerFactoryBean sf3 = (JAXRSServerFactoryBean)ctx.getBean("oauthServerExt");
        s3 = sf3.create();

    }

    @AfterClass
    public static void stopService() throws Exception {

Examples of org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.create()

    @Test
    public void testSelectBetweenMultipleResourceClasses() throws Exception {
        JAXRSServiceFactoryBean sf = new JAXRSServiceFactoryBean();
        sf.setResourceClasses(org.apache.cxf.jaxrs.resources.BookStoreNoSubResource.class,
                              org.apache.cxf.jaxrs.resources.BookStore.class);
        sf.create();       
        List<ClassResourceInfo> resources = ((JAXRSServiceImpl)sf.getService()).getClassResourceInfos();
        MultivaluedMap<String, String> map = new MetadataMap<String, String>();
        ClassResourceInfo bStore = JAXRSUtils.selectResourceClass(resources, "/bookstore", map, null);
        assertEquals(bStore.getResourceClass(), org.apache.cxf.jaxrs.resources.BookStore.class);
       
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.