Examples of createInstance()


Examples of com.discoverydns.dnsapiclient.internal.DefaultObjectMapperFactory.createInstance()

        return createInstance(config,
                new DefaultSSLContextFactory(defaultSSLContextFactoryConfig),
                objectMapperFactory,
                new DefaultClientTransactionIdStrategy(),
                new DefaultTransactionLogHandler(defaultTransactionLogHandlerConfig,
                        objectMapperFactory.createInstance()));
    }

  private Client createRESTClient(final DNSAPIClientConfig config,
                                    final ObjectMapper mapper,
                                    final SSLContextFactory sslContextFactory) throws Exception {
View Full Code Here

Examples of com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.createInstance()

    public static SerializerProvider getSerializerProvider(
            ObjectMapper objectMapper) {
        DefaultSerializerProvider serializerProvider = (DefaultSerializerProvider) objectMapper
                .getSerializerProvider();
        return serializerProvider.createInstance(
                objectMapper.getSerializationConfig(),
                getSerializerFactory(objectMapper));
    }

    public static JsonSerializer findValueSerializer(
View Full Code Here

Examples of com.google.gson.InstanceCreator.createInstance()

    if (localInstanceCreator != null)
      return new ObjectConstructor()
      {
        public Object construct()
        {
          return localInstanceCreator.createInstance(localType);
        }
      };
    ObjectConstructor localObjectConstructor1 = newDefaultConstructor(localClass);
    if (localObjectConstructor1 != null)
      return localObjectConstructor1;
View Full Code Here

Examples of com.lightcrafts.mediax.jai.RenderedOp.createInstance()

      if (source instanceof RenderedOp) {

                RenderedOp src = (RenderedOp)source;
    ai = isNodeRendered ?
                    src.getRendering() :
                    src.createInstance();

            } else if ((source instanceof RenderedImage) ||
                       (source instanceof Collection)) {

                ai = source;
View Full Code Here

Examples of com.opensymphony.xwork2.TextProviderFactory.createInstance()

    if (textProvider == null) {
      TextProviderFactory tpf = new TextProviderFactory();
      if (container != null) {
        container.inject(tpf);
      }
      textProvider = tpf.createInstance(getClass(), this);
    }
    return textProvider;
  }

  @Inject
View Full Code Here

Examples of com.sun.enterprise.ee.admin.servermgmt.EEInstancesManager.createInstance()

                            }
                            props.setProperty(EEScriptsTokens.CLUSTER_NAME, clusterArg);                           
                            // set the overriding properties used in token replacement
                            eeInstancesManager.setOverridingProperties(props);
                            // create instance
                            eeInstancesManager.createInstance();                           
                            // make list of created server instances to know which ones to
                            // sync on nodeagent startup.
                            createdInstances.add(servers[ii].getName());
                        }
                        // remove it from delete instances array
View Full Code Here

Examples of com.sun.star.comp.servicemanager.ServiceManager.createInstance()

    }

    ServiceManager serviceManager = new ServiceManager();
    serviceManager.addFactories(neededServices);

    XAcceptor xAcceptor = (XAcceptor)UnoRuntime.queryInterface(XAcceptor.class, serviceManager.createInstance("com.sun.star.connection.Acceptor"));

    System.err.println("waiting for connect...");
    XConnection xConnection = xAcceptor.accept(conDcp);

    XBridgeFactory xBridgeFactory = (XBridgeFactory)UnoRuntime.queryInterface(XBridgeFactory.class, serviceManager.createInstance("com.sun.star.bridge.BridgeFactory"));
View Full Code Here

Examples of com.sun.star.lang.XSingleServiceFactory.createInstance()

    public boolean createQuery(SQLQueryComposer _oSQLQueryComposer, String _QueryName) {
        try {
            XQueryDefinitionsSupplier xQueryDefinitionsSuppl = (XQueryDefinitionsSupplier) UnoRuntime.queryInterface(XQueryDefinitionsSupplier.class, xDataSource);
            XNameAccess xQueryDefs = xQueryDefinitionsSuppl.getQueryDefinitions();
            XSingleServiceFactory xSSFQueryDefs = (XSingleServiceFactory) UnoRuntime.queryInterface(XSingleServiceFactory.class, xQueryDefs);
            Object oQuery = xSSFQueryDefs.createInstance(); //"com.sun.star.sdb.QueryDefinition"
            XPropertySet xPSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, oQuery);
            xPSet.setPropertyValue("Command", _oSQLQueryComposer.xQueryAnalyzer.getQuery());
            XNameContainer xNameCont = (XNameContainer) UnoRuntime.queryInterface(XNameContainer.class, xQueryDefs);
            ConnectionTools.getObjectNames().checkNameForCreate(com.sun.star.sdb.CommandType.QUERY,_QueryName);
            xNameCont.insertByName(_QueryName, oQuery);
View Full Code Here

Examples of com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.createInstance()

        public BeanT parse(CharSequence lexical) throws AccessorException, SAXException {
            UnmarshallingContext ctxt = UnmarshallingContext.getInstance();
            BeanT inst;
            if(ctxt!=null)
                inst = (BeanT)ctxt.createInstance(ownerClass);
            else
                // when this runs for parsing enum constants,
                // there's no UnmarshallingContext.
                inst = ClassFactory.create(ownerClass);
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.createInstance()

        public BeanT parse(CharSequence lexical) throws AccessorException, SAXException {
            UnmarshallingContext ctxt = UnmarshallingContext.getInstance();
            BeanT inst;
            if(ctxt!=null)
                inst = (BeanT)ctxt.createInstance(ownerClass);
            else
                // when this runs for parsing enum constants,
                // there's no UnmarshallingContext.
                inst = ClassFactory.create(ownerClass);
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.