Examples of create()


Examples of org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create()

        ReflectionServiceFactoryBean serviceFactory = new JaxWsServiceFactoryBean();
        serviceFactory.setBus(bus);
        serviceFactory.setServiceName(serviceName);
        serviceFactory.setServiceClass(serviceEndpointInterface);
        serviceFactory.setWsdlURL(ClientMtomXopTest.class.getResource("/wsdl/mtom_xop.wsdl"));
        Service service = serviceFactory.create();
        EndpointInfo ei = service.getEndpointInfo(portName);
        JaxWsEndpointImpl jaxwsEndpoint = new JaxWsEndpointImpl(bus, service, ei);
        SOAPBinding jaxWsSoapBinding = new SOAPBindingImpl(ei.getBinding(), jaxwsEndpoint);
        jaxWsSoapBinding.setMTOMEnabled(enableMTOM);
       

Examples of org.apache.cxf.wsdl11.WSDLServiceFactory.create()

    protected void setupServiceInfo(String ns, String wsdl, String serviceName, String portName) {       
        URL wsdlUrl = getClass().getResource(wsdl);
        assertNotNull(wsdlUrl);
        WSDLServiceFactory factory = new WSDLServiceFactory(bus, wsdlUrl, new QName(ns, serviceName));

        Service service = factory.create();       
        endpointInfo = service.getServiceInfo().getEndpoint(new QName(ns, portName));
  
    }

   

Examples of org.apache.deltaspike.core.util.metadata.builder.AnnotatedTypeBuilder.create()

            String newBeanName = beanName.substring(0, 1).toLowerCase() + beanName.substring(1);

            builder.removeFromClass(Named.class)
                    .addToClass(new NamedLiteral(newBeanName));

            processAnnotatedType.setAnnotatedType(builder.create());
        }
    }
}

Examples of org.apache.derby.iapi.services.cache.CacheManager.create()

      key = td.getUUID();

    try
    {
      // insert the entry into the the other cache.
      otherCacheEntry = (TDCacheable)otherCache.create(key, td);
    }
    catch (StandardException se)
    {
      // if the object already exists in cache then somebody beat us to it
      // otherwise throw the error.

Examples of org.apache.directory.ldapstudio.browser.ui.valueeditors.IValueEditor.create()

        for ( ValueEditorExtension proxy : valueEditorProxys )
        {
            try
            {
                IValueEditor valueEditor = ( IValueEditor ) proxy.member.createExecutableExtension( "class" );
                valueEditor.create( parent );
                valueEditor.setValueEditorName( proxy.name );
                valueEditor.setValueEditorImageDescriptor( proxy.icon );
                valueEditors.add( valueEditor );
            }
            catch ( Exception e )

Examples of org.apache.empire.db.DBRecord.create()

   */
  private static int insertDepartment(Connection conn, String departmentName, String businessUnit)
    {
    // Insert a Department
    DBRecord rec = new DBRecord();
    rec.create(db.DEPARTMENTS);
    rec.setValue(db.DEPARTMENTS.NAME, departmentName);
    rec.setValue(db.DEPARTMENTS.BUSINESS_UNIT, businessUnit);
    rec.update(conn);
    // Return Department ID
    return rec.getInt(db.DEPARTMENTS.DEPARTMENT_ID);

Examples of org.apache.felix.deploymentadmin.itest.util.DeploymentPackageBuilder.create()

        assertBundleExists(getSymbolicName("bundle3"), "1.0.0");

        System.setProperty("bundle3", "stop");

        dpBuilder = dpBuilder.create("1.0.1");
        dpBuilder
            .add(dpBuilder.createBundleResource().setUrl(getTestBundle("bundle1")))
            .add(dpBuilder.createBundleResource().setUrl(getTestBundle("bundle2")));

        dp = installDeploymentPackage(dpBuilder);

Examples of org.apache.felix.ipojo.api.SingletonComponentType.create()

    public void createAServiceProvider() throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException {
        assertThat(context, is(notNullValue()));
        ComponentInstance ci = null;

        SingletonComponentType type = createAProvider();
        ci = type.create();
        assertThat("Ci is valid", ci.getState(), is(ComponentInstance.VALID));
        ServiceReference ref = ipojoHelper.getServiceReferenceByName(Foo.class
                .getName(), ci.getInstanceName());
        assertThat(ref, is(notNullValue()));
        type.disposeInstance(ci);

Examples of org.apache.flink.core.fs.FileSystem.create()

      final FileSystem fs = dir.getFileSystem();

      fs.mkdirs(subsubdir);

      final OutputStream os = fs.create(file, true);
      generateTestData(os, SMALL_FILE_SIZE);
      os.close();

      // On this directory levels there should only be one subdirectory
      FileStatus[] list = fs.listStatus(dir);

Examples of org.apache.flink.core.fs.local.LocalFileSystem.create()

      /*
       * check that lfs can create/read/write from/to files properly and read meta information..
       */

      // create files.. one ""natively"", one using lfs
      final FSDataOutputStream lfsoutput1 = lfs.create(pathtotestfile1, false);
      testfile2.createNewFile();

      // does lfs create files? does lfs recognize created files?
      assertTrue(testfile1.exists());
      assertTrue(lfs.exists(pathtotestfile2));
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.