Examples of createInstance()


Examples of org.platformlayer.service.cloud.google.ops.compute.GoogleComputeClient.createInstance()

        PlatformLayerKey instanceKey = instance.getKey();
        request.tags.add(Tag.buildParentTag(instanceKey));

        PublicKey servicePublicKey = service.getSshKey().getKeyPair().getPublic();
        Instance created = computeClient.createInstance(cloud, request, servicePublicKey);

        {
          Tag instanceTag = Tag.build(Tag.ASSIGNED, created.getName());
          platformLayer.addTag(instance.getKey(), instanceTag);
        }
View Full Code Here

Examples of org.python.core.PyString.createInstance()

        }

        PyList list = new PyList();
        PyString string = (PyString) path;
        for (String name : names) {
            list.append(string.createInstance(name));
        }
        return list;
    }

    public static PyString __doc__lseek = new PyString(
View Full Code Here

Examples of org.springframework.data.convert.EntityInstantiator.createInstance()

    final DefaultSpELExpressionEvaluator evaluator = new DefaultSpELExpressionEvaluator(source, spELContext);
    ParameterValueProvider<CouchbasePersistentProperty> provider =
      getParameterProvider(entity, source, evaluator, parent);
    EntityInstantiator instantiator = instantiators.getInstantiatorFor(entity);

    R instance = instantiator.createInstance(entity, provider);
    final BeanWrapper<R> wrapper = BeanWrapper.create(instance, conversionService);
    final R result = wrapper.getBean();

    entity.doWithProperties(new PropertyHandler<CouchbasePersistentProperty>() {
      @Override
View Full Code Here

Examples of org.torquebox.core.runtime.RubyRuntimeFactory.createInstance()

        } else {
            factory.setGemPath( "target/rubygems" );
        }
        factory.setUseJRubyHomeEnvVar( false );

        Ruby ruby = factory.createInstance( getClass().getSimpleName() );

        ruby.evalScriptlet( "require %q(rubygems)" );
        return ruby;
    }
   
View Full Code Here

Examples of org.uengine.kernel.ProcessDefinition.createInstance()

   
    ProcessInstance.USE_CLASS = DefaultProcessInstance.class;

    ProcessDefinition pd = (ProcessDefinition) GlobalContext.deserialize(new FileInputStream(args[0]), ProcessDefinition.class);
   
    ProcessInstance pi = pd.createInstance();
   
    pi.set("", "fieldName", "1");
   
    try{
      pi.execute();
View Full Code Here

Examples of org.uiautomation.ios.application.APPIOSApplication.createInstance()

      if (appFile.getName().endsWith(".app")) {
        capabilities.setCapability(IOSCapabilities.SIMULATOR, true);
      }
      APPIOSApplication app = APPIOSApplication.createFrom(appFile);
      AppleLanguage lang = AppleLanguage.valueOf(capabilities.getLanguage());
      return app.createInstance(lang);
    } catch (Exception ex) {
      throw new SessionNotCreatedException("cannot create app from " + appURL + ": " + ex);
    }

  }
View Full Code Here

Examples of util.SOfficeFactory.createInstance()

        XComponent oComp = (XComponent)
                    UnoRuntime.queryInterface (XComponent.class, xSheetDoc);

        oObj = (XInterface)
            SOF.createInstance(oComp, "com.sun.star.sheet.SheetCellRanges");

        XSpreadsheets oSheets = xSheetDoc.getSheets() ;
        XIndexAccess oIndSheets = (XIndexAccess)
            UnoRuntime.queryInterface (XIndexAccess.class, oSheets);
        XSpreadsheet oSheet = null;
View Full Code Here

Examples of util.XInstCreator.createInstance()

     */
    public void _insertTextContentAfter() {

        try {
            XInstCreator para = (XInstCreator)tEnv.getObjRelation( "PARA" );
            XInterface oInt = para.createInstance();
            XTextContent new_content = (XTextContent) oInt;
            XText theText = (XText)
                UnoRuntime.queryInterface(XText.class,oObj);
            XTextCursor oCursor = theText.createTextCursor();
            XInstCreator info = (XInstCreator)
View Full Code Here

Examples of xbird.xquery.type.xs.DateTimeBaseType.createInstance()

        }
        final boolean mayCastable = TypeTable.isMayCastable(type, trgType);
        if(mayCastable) {
            if(trgType instanceof DateTimeBaseType) {
                final DateTimeBaseType dtType = (DateTimeBaseType) trgType;
                return (T) dtType.createInstance(value);
            } else {
                final String sv = stringValue();
                final String literal = trgType.processWhitespace(sv);
                try {
                    return (T) trgType.createInstance(literal, type, dynEnv);
View Full Code Here
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.