Examples of construct()


Examples of org.apache.jena.iri.IRIFactory.construct()

        final Graph graph = model.getGraph();
        out.println("Graph := "+graph);

        if (graph.isEmpty()) {
            final Resource product1 = model.createResource(
                    iriFactory.construct( MY_NS +"product/1" )
                        .toString() );

            final Property hasName = model.createProperty( MY_NS, "#hasName");
            final Statement stmt = model.createStatement(
                    product1, hasName, model.createLiteral("Beach Ball","en") );
View Full Code Here

Examples of org.apache.niolex.commons.test.SleepStage.construct()

    SleepStage.Worker w = ss.getWorker();
    assertTrue(w.isWorking());
    w.setWorking(false);
    w.interrupt();
    assertFalse(w.isWorking());
    ss.construct();
    ss.subtractThread();
    ss.subtractThread();
    ss.subtractThread();
    ss.shutdown();
  }
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.codec.DescribedTypeConstructor.construct()

                DescribedTypeConstructor constructor = describedTypeRegistry
                        .getConstructor(source.getOutcomes()[0]);
                if(constructor != null)
                {
                    Object impliedOutcome = constructor.construct(Collections.EMPTY_LIST);
                    if(impliedOutcome instanceof Outcome)
                    {
                        _defaultOutcome = (Outcome) impliedOutcome;
                    }
                }
View Full Code Here

Examples of org.geotools.arcsde.data.ArcSDEGeometryBuilder.construct()

        try {
            SeShape extent = new SeShape(this.sdeLayer.getCoordRef());
            extent.generateRectangle(seExtent);

            Geometry layerEnv = gb.construct(extent, new GeometryFactory());
            geom = geom.intersection(layerEnv); // does the work

            // Now make an SeShape
            SeShape filterShape;
View Full Code Here

Examples of org.jboss.ejb3.interceptors.test.indirectcontainer.DummyContainerContainer.construct()

   public void test1() throws Exception
   {
      int previous = DummyInterceptor.getInvocations();
     
      DummyContainerContainer containerContainer = new DummyContainerContainer("Test", "InterceptorContainer", DummyIndirectContainer.class);
      BeanContext<DummyIndirectContainer> interceptorContainer = containerContainer.construct();
      // TODO: why do we need this explicitly, can't the direct container handle this?
      interceptorContainer.getInstance().setBeanContext(interceptorContainer);
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      Class<?> interfaces[] = { Dummy.class };
      Dummy dummy = (Dummy) Proxy.newProxyInstance(loader, interfaces, interceptorContainer.getInstance());
View Full Code Here

Examples of org.jboss.modules.security.ModularPermissionFactory.construct()

                    }
                }
            }
        });
        final ModularPermissionFactory factory = new ModularPermissionFactory(moduleLoader, test, RuntimePermission.class.getName(), "foo", "*");
        assertEquals(new RuntimePermission("foo", "*"), factory.construct());
    }
}
View Full Code Here

Examples of org.jbpm.pvm.internal.wire.Descriptor.construct()

  public Object construct(WireContext wireContext) {
    CommandService interceptedCommandService = commandService;
    if (interceptorDescriptors!=null) {
      for (int i=interceptorDescriptors.size()-1 ; i>=0; i--) {
        Descriptor descriptor = interceptorDescriptors.get(i);
        Interceptor interceptor = (Interceptor) descriptor.construct(wireContext);
        interceptor.setNext(interceptedCommandService);
        interceptedCommandService = interceptor;
      }
    }
    return interceptedCommandService;
View Full Code Here

Examples of org.jbpm.wire.Descriptor.construct()

  public Object construct(WireContext wireContext) {
    CommandService interceptedCommandService = commandService;
    if (interceptorDescriptors!=null) {
      for (int i=interceptorDescriptors.size()-1 ; i>=0; i--) {
        Descriptor descriptor = interceptorDescriptors.get(i);
        Interceptor interceptor = (Interceptor) descriptor.construct(wireContext);
        interceptor.setNext(interceptedCommandService);
        interceptedCommandService = interceptor;
      }
    }
    return interceptedCommandService;
View Full Code Here

Examples of org.kitesdk.data.spi.URIPattern.construct()

          public DatasetRepository getFromOptions(Map<String, String> options) {
            DatasetRepository repo = repos.get(options.get("id"));
            if (repo == null) {
              repo = mock(org.kitesdk.data.spi.DatasetRepository.class);
              when(repo.getUri()).thenReturn(
                  URI.create("repo:" + mockPattern.construct(options)));
              repos.put(options.get("id"), repo);
            }
            return repo;
          }
        }
View Full Code Here

Examples of org.mozilla.javascript.Function.construct()

      }
      Scriptable global = GlobalData.getGlobalScope();
     
      Function queryFunction = (Function) ScriptableObject.getProperty(schema, "query");
      Function QueryString = (Function) global.get("QueryString", global);
      Scriptable queryString = QueryString.construct(PersevereContextFactory.getContext(), global, new Object[]{jsonPath, paramScope});
      if(queryFunction instanceof Method){
        queryFunction = ((Method)queryFunction).innerFunction;
      }
      result = queryFunction.call(PersevereContextFactory.getContext(), global, target, new Object[]{queryString, target});
    }finally{
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.