Examples of create()


Examples of org.codehaus.xfire.jaxws.JAXWSServiceFactory.create()

        throws Exception
    {
        super.setUp();
       
        JAXWSServiceFactory asf = new JAXWSServiceFactory(getTransportManager());
        service = asf.create(CustomXFireNamespaceProblemServiceImpl.class,
                             null,
                             getTestFile("src/wsdl/XFire582.wsdl").toURL(),
                             null);
       
        Soap11Binding binding = new Soap11Binding(new QName("Soap"),

Examples of org.codehaus.xfire.service.ServiceFactory.create()

    {
        super.setUp();

        ServiceFactory factory = getServiceFactory();
       
        service = factory.create(BeanService.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, BeanService.class);

        getServiceRegistry().register(service);
    }

Examples of org.codehaus.xfire.service.binding.ObjectServiceFactory.create()

        props.put(AegisBindingProvider.WRITE_XSI_TYPE_KEY, "true");
        ArrayList l = new ArrayList();
        l.add(Employee.class.getName());

        props.put(AegisBindingProvider.OVERRIDE_TYPES_KEY, l);
        endpoint = osf.create(InheritanceService.class,
                              "InheritanceService",
                              "urn:xfire:inheritance",
                              props);

        getServiceRegistry().register(endpoint);

Examples of org.codehaus.xfire.xmlbeans.XmlBeansServiceFactory.create()

        {
            url = args[0];
        }
       
        XmlBeansServiceFactory xsf = new XmlBeansServiceFactory();
        Service serviceModel = xsf.create(OrderService.class);
       
        OrderService client =
            (OrderService) new XFireProxyFactory().create(serviceModel, url);
       
        PurchaseOrderDocument poDoc = PurchaseOrderDocument.Factory.newInstance();

Examples of org.compass.core.CompassSession.create()

    @Transactional
    public void createIndex(Model model) {
        try{
            CompassSession session = getCompassSession();
            try {
                session.create(model);
            } catch (Exception e) {
                String info=e.getMessage();
                LOG.error("创建索引失败", e);
                LOG.error("Failed in building index", e, Locale.ENGLISH);

Examples of org.crsh.cli.impl.lang.CommandFactory.create()

  private final CommandDescriptor<Instance<T>> descriptor;

  public ClassShellCommand(Class<T> clazz) throws IntrospectionException {
    CommandFactory factory = new CommandFactory(getClass().getClassLoader());
    this.clazz = clazz;
    this.descriptor = HelpDescriptor.create(factory.create(clazz));
  }

  public CommandDescriptor<Instance<T>> getDescriptor() {
    return descriptor;
  }

Examples of org.crsh.lang.impl.script.PipeLineFactory.create()

  public CommandInvoker<?, ?> resolve(String s) throws CommandException {
    CRaSHSession session = (CRaSHSession)getSession();
    Token token2 = Token.parse(s);
    try {
      PipeLineFactory factory = token2.createFactory();
      return factory.create(session);
    }
    catch (CommandNotFoundException e) {
      throw new CommandException(ErrorKind.SYNTAX, e.getMessage(), e);
    }
  }

Examples of org.crsh.shell.ShellFactory.create()

        Boolean enabled = context.getProperty(WebPlugin.ENABLED);
        if (enabled != null && enabled) {
          log.fine("Using shell " + context);
          ShellFactory factory = context.getPlugin(ShellFactory.class);
          Principal user = wsSession.getUserPrincipal();
          Shell shell = factory.create(user);
          CRaSHSession session = new CRaSHSession(wsSession, shell);
          sessions.put(wsSession.getId(), session);
          log.fine("Established session " + wsSession.getId());
        } else {
          log.fine("Web plugin disabled");

Examples of org.datanucleus.store.rdbms.table.ProbeTable.create()

                    {
                        // If we aren't a read-only datastore, try to create a table and then
                        // retrieve its details, so as to obtain the catalog, schema.
                        ProbeTable pt = new ProbeTable(this);
                        pt.initialize(clr);
                        pt.create(conn);
                        try
                        {
                            String[] schema_details = pt.findSchemaDetails(conn);
                            if (schema_details != null)
                            {

Examples of org.drools.compiler.compiler.io.File.create()

                Folder folder = mfs.getFolder( path );
                folder.create();

                File file = folder.getFile( name );
                file.create( zipFile.getInputStream( entry ) );
            }
        } catch ( IOException e ) {
            throw new RuntimeException( e );
        } finally {
            if ( zipFile != null ) {
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.