Examples of instance()


Examples of com.complexible.common.openrdf.util.GraphBuilder.instance()

    Collection<AccessibleObject> aAccessors = new HashSet<AccessibleObject>();
    aAccessors.addAll(getAnnotatedFields(aObj.getClass()));
    aAccessors.addAll(getAnnotatedGetters(aObj.getClass(), true));

    try {
      ResourceBuilder aRes = aBuilder.instance(aBuilder.getValueFactory().createURI(PrefixMapping.GLOBAL.uri(aClass.value())),
                           aSubj);

      for (AccessibleObject aAccess : aAccessors) {
        if (LOGGER.isDebugEnabled()) {
          LOGGER.debug("Getting rdf for : {}", aAccess);
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jackson.databind.ser.impl.ReadOnlyClassToSerializerMap.instance()

            m = _readOnlyMap;
            if (m == null) {
                _readOnlyMap = m = ReadOnlyClassToSerializerMap.from(_sharedMap);
            }
        }
        return m.instance();
    }

    /*
    /**********************************************************
    /* Lookup methods for accessing shared (slow) cache
View Full Code Here

Examples of com.fasterxml.jackson.databind.ser.impl.ReadOnlyClassToSerializerMap.instance()

            m = _readOnlyMap;
            if (m == null) {
                _readOnlyMap = m = ReadOnlyClassToSerializerMap.from(_sharedMap);
            }
        }
        return m.instance();
    }

    /*
    /**********************************************************
    /* Lookup methods for accessing shared (slow) cache
View Full Code Here

Examples of com.foundationdb.server.types.TClass.instance()

                        return null;
                    tClass = typesList.next();
                } while (!TypeValidator.isSupportedForColumn(tClass));
               
                boolean indexable = TypeValidator.isSupportedForIndex(tClass);
                TInstance type = tClass.instance(true);
                PostgresType pgType = PostgresType.fromTInstance(type);
               
                String bundle = tClass.name().bundleId().name();
                String category = tClass.name().categoryName();
                String name = tClass.name().unqualifiedName();
View Full Code Here

Examples of kodkod.engine.Solution.instance()

            String out = tmpCNF.getAbsolutePath();
            solver.options().setSolver(WriteCNF.factory(out));
            try { sol = solver.solve(fgoal, bounds); } catch(WriteCNF.WriteCNFCompleted ex) { rep.resultCNF(out); return null; }
            // The formula is trivial (otherwise, it would have thrown an exception)
            // Since the user wants it in CNF format, we manually generate a trivially satisfiable (or unsatisfiable) CNF file.
            Util.writeAll(out, sol.instance()!=null ? "p cnf 1 1\n1 0\n" : "p cnf 1 2\n1 0\n-1 0\n");
            rep.resultCNF(out);
            return null;
         }
        if (solver.options().solver()==SATFactory.ZChaff || !solver.options().solver().incremental()) {
           rep.debug("Begin solve()\n");
View Full Code Here

Examples of net.kuujo.copycat.test.TestNode.instance()

      .withLastApplied(6);
    cluster.addNode(node3);

    cluster.start();

    node3.instance().cluster().config().addRemoteMember(new Member("foobarbaz"));

    // First, the leader should have replicated a join configuration.
    node1.await().membershipChange();
    Assert.assertNotNull(node1.instance().clusterManager().cluster().remoteMember("foobarbaz"));
    cluster.stop();
View Full Code Here

Examples of org.codehaus.jackson.map.ser.impl.ReadOnlyClassToSerializerMap.instance()

            m = _readOnlyMap;
            if (m == null) {
                _readOnlyMap = m = ReadOnlyClassToSerializerMap.from(_sharedMap);
            }
        }
        return m.instance();
    }

    /*
    /**********************************************************
    /* Lookup methods for accessing shared (slow) cache
View Full Code Here

Examples of org.gatein.pc.portlet.impl.jsr168.PortletFilterImpl.instance()

                PortletFilterImpl portletFilterImpl = (PortletFilterImpl) managedPortletFilter.getPortletFilter();
                PortletFilter portletFilterInstance;

                for (Class type : filterClasses) {
                    portletFilterInstance = (PortletFilter) portletFilterImpl.instance(type);

                    if (null != portletFilterInstance) {
                        PortletApplication portletApp = managedPortletFilter.getManagedPortletApplication().getPortletApplication();

                        if (LifeCycleStatus.STARTED == status && !cdiMetaData.injectionPerformed) {
View Full Code Here

Examples of org.jboss.weld.environment.se.WeldContainer.instance()

        WeldContainer wc = w.initialize();

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        PrintStream ps = new PrintStream(baos);

        CDIExample bean = wc.instance().select(CDIExample.class).get();
        bean.go(ps);

        ps.close();

        String actual = new String(baos.toByteArray());
View Full Code Here

Examples of org.jboss.weld.environment.se.WeldContainer.instance()

        WeldContainer wc = w.initialize();

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        PrintStream ps = new PrintStream(baos);

        CDIInstanceExample bean = wc.instance().select(CDIInstanceExample.class).get();
        bean.go(ps);

        ps.close();

        String actual = new String(baos.toByteArray());
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.