Examples of newInstance()


Examples of com.opengamma.engine.depgraph.DependencyGraphBuilderFactory.newInstance()

    return resolver.compile(Instant.now());
  }

  private DependencyGraphBuilder createBuilder() {
    final DependencyGraphBuilderFactory factory = new DependencyGraphBuilderFactory();
    final DependencyGraphBuilder builder = factory.newInstance();
    final FunctionCompilationContext ctx = createFunctionCompilationContext();
    builder.setCalculationConfigurationName("Default");
    ctx.setViewCalculationConfiguration(new ViewCalculationConfiguration(new ViewDefinition("Name", "User"), "Default"));
    builder.setCompilationContext(ctx);
    final CompiledFunctionResolver cfr = createFunctionResolver(ctx);
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocument.newInstance()

        baseClass.createProperty("testParentProperty", OType.LONG).createIndex(OClass.INDEX_TYPE.NOTUNIQUE);

        db.getMetadata().getSchema().save();
      }

      ODocument childClassDocument = db.newInstance("ChildTestClass");
      childClassDocument.field("testParentProperty", 10L);
      childClassDocument.save();

      ODocument anotherChildClassDocument = db.newInstance("AnotherChildTestClass");
      anotherChildClassDocument.field("testParentProperty", 11L);
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.newInstance()

    // long tot = db1.countClass("Account");

    db1.begin();

    ODocument record1 = db1.newInstance("Account");
    record1.field("location", "This is the first version").save();

    ODocument record2 = db1.newInstance("Account");
    record2.field("location", "This is the first version").save();
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ODatabaseFlat.newInstance()

  }

  public void testDictionaryCreate() throws IOException {
    ODatabaseFlat database = new ODatabaseFlat(url);
    database.open("admin", "admin");
    ORecordFlat record = database.newInstance();

    database.getDictionary().put("key1", record.value("Dictionary test!"));

    database.close();
  }
View Full Code Here

Examples of com.orientechnologies.orient.object.db.OObjectDatabaseTx.newInstance()

      customTypeSet.add(new CustomType(103L));

      Map<Long, CustomType> customTypeMap = new HashMap<Long, CustomType>();
      customTypeMap.put(1L, new CustomType(104L));

      CustomClass pojo = database.newInstance(CustomClass.class, "test", 33L, new CustomType(101L), customTypesList, customTypeSet,
          customTypeMap);
      Assert.assertEquals(serialized, 4);
      Assert.assertEquals(unserialized, 0);

      pojo = database.save(pojo);
View Full Code Here

Examples of com.salesforce.phoenix.expression.ExpressionType.newInstance()

            DataInputStream input = new DataInputStream(stream);
            int size = WritableUtils.readVInt(input);
            List<Expression> selectExpressions = Lists.newArrayListWithExpectedSize(size);
            for (int i = 0; i < size; i++) {
                ExpressionType type = ExpressionType.values()[WritableUtils.readVInt(input)];
                Expression selectExpression = type.newInstance();
                selectExpression.readFields(input);
                selectExpressions.add(selectExpression);
            }
            return selectExpressions;
        } catch (IOException e) {
View Full Code Here

Examples of com.sun.enterprise.security.integration.AppServSecurityContext.newInstance()

            if (defaultSecurityContext) {
                securityContext = SecurityContext.getDefaultSecurityContext();
            }
            else {
                AppServSecurityContext appServSecurityContext = ConcurrentRuntime.getRuntime().getSecurityContext();
                securityContext = appServSecurityContext.newInstance(principalName, subject, null);
            }
        }
        //TODO re-initialize these fields
        contextClassLoader = null;
    }
View Full Code Here

Examples of com.sun.faces.spi.ManagedBeanFactory.newInstance()

                }
            }
        } else {
            scopeIsRequest = (scope == Scope.REQUEST);
            try {
                bean = managedBean.newInstance(context);
                if (LOGGER.isLoggable(Level.FINE)) {
                    LOGGER.log(Level.FINE, MessageFormat.format("Created bean {0} successfully ", managedBeanName));
                }
            } catch (Exception ex) {
                Object[] params = {managedBeanName};
View Full Code Here

Examples of com.sun.grid.jgdi.configuration.reflect.ClassDescriptor.newInstance()

            Class clazz = pd.getPropertyType();
            if (pd.hasCullWrapper()) {
               
                ClassDescriptor realClassDescriptor = Util.getDescriptor(pd.getPropertyType());
               
                Object obj = realClassDescriptor.newInstance();
               
                PropertyDescriptor rpd = realClassDescriptor.getPropertyByCullFieldName(pd.getCullContentField());
               
                if (rpd instanceof SimplePropertyDescriptor) {
                    ((SimplePropertyDescriptor)rpd).setValue(obj, parse(value, rpd));
View Full Code Here

Examples of com.sun.star.xforms.XFormsUIHelper1.newInstance()

            newModel = (XModel) UnoRuntime.queryInterface( XModel.class,
                getOrb().createInstance( "com.sun.star.xforms.Model" ) );
            newModel.setID(_modelName);
            XFormsUIHelper1 modelHelper = (XFormsUIHelper1) UnoRuntime.queryInterface(
                XFormsUIHelper1.class, newModel );
            modelHelper.newInstance( "Instance 1", new String(), true );
            newModel.initialize();

            m_forms.insertByName(_modelName, newModel);
        }
        catch (Exception ex)
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.