Examples of create()


Examples of org.apache.ojb.odmg.oql.OQLQueryImpl.create()

        PBCapsule capsule = new PBCapsule(pbKey, tx);
        PersistenceBroker broker = capsule.getBroker();

        try
        {
            predicateQuery.create(oql);
            Query pQ = ((OQLQueryImpl) predicateQuery).getQuery();
            Criteria pCrit = pQ.getCriteria();

            Criteria allElementsCriteria = this.getPkCriteriaForAllElements(broker);
            // join selection of elements with predicate criteria:

Examples of org.apache.olingo.odata2.core.uri.ExpandSelectTreeCreator.create()

    }
    UriInfo uriInfo = uriParser.parse(pathSegments, queryParameters);

    ExpandSelectTreeCreator expandSelectTreeCreator =
        new ExpandSelectTreeCreator(uriInfo.getSelect(), uriInfo.getExpand());
    ExpandSelectTreeNode expandSelectTree = expandSelectTreeCreator.create();
    assertNotNull(expandSelectTree);
    return expandSelectTree;
  }
}

Examples of org.apache.olio.webapp.util.fs.FileSystem.create()

        }
    }
   
    public void write (String path) throws IOException {
        FileSystem fs = ServiceLocator.getInstance().getFileSystem();
        OutputStream oStream = fs.create(path);
        ImageIO.write(image, format, oStream);
        try {
            oStream.close();
        }
        catch (Exception e) {}

Examples of org.apache.oozie.service.WorkflowStoreService.create()

      conf.set(OozieClient.USER_NAME, getTestUser());
      conf.set("appName", "var-app-name");
      SubmitXCommand sc = new SubmitXCommand(conf, "UNIT_TESTING");
      String jobId = sc.call();
      WorkflowStoreService wss = Services.get().get(WorkflowStoreService.class);
      WorkflowStore ws = wss.create();
      WorkflowJobBean wfb = ws.getWorkflow(jobId, false);
      assertEquals("var-app-name-foo", wfb.getAppName());
  }

    public void testSubmitReservedVars() throws Exception {

Examples of org.apache.openejb.DeploymentInfo.BusinessLocalHome.create()

        {
            interfaces.add(clazz);
        }
       
        BusinessLocalHome home = getBusinessLocalHome(interfaces);
        return (T)home.create();
    }

   
    /**
     * Gets ejb name.

Examples of org.apache.openejb.cdi.ConstructorInjectionBean.create()

                }

                final Class clazz = interceptorData.getInterceptorClass();

                final ConstructorInjectionBean interceptorConstructor = new ConstructorInjectionBean(webBeansContext, clazz);
                final InjectionProcessor interceptorInjector = new InjectionProcessor(interceptorConstructor.create(creationalContext), this.getInjections(), org.apache.openejb.InjectionProcessor.unwrap(ctx));
                try {
                    final Object interceptorInstance = interceptorInjector.createInstance();

                    // TODO we likely don't want to create a new one each time -- investigate the destroy() method
                    try {

Examples of org.apache.openejb.concurrencyutilities.ee.factory.ManagedScheduledExecutorServiceImplFactory.create()

    @Test
    public void createServiceTest() {
        final ManagedScheduledExecutorServiceImplFactory factory = new ManagedScheduledExecutorServiceImplFactory();
        factory.setThreadFactory(MyThreadFactory.class.getName());
        final ManagedScheduledExecutorServiceImpl executorService = factory.create();
        final ScheduledThreadPoolExecutor poolExecutor = (ScheduledThreadPoolExecutor) executorService.getDelegate();
        Assert.assertEquals(poolExecutor.getThreadFactory().getClass(), ManagedThreadFactoryImpl.class);
    }

    public static class MyThreadFactory {

Examples of org.apache.openejb.resource.GeronimoConnectionManagerFactory.create()

                connectionManagerFactory.setTransactionManager(transactionManager);
                ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
                if (classLoader == null) classLoader = getClass().getClassLoader();
                if (classLoader == null) classLoader = ClassLoader.getSystemClassLoader();
                connectionManagerFactory.setClassLoader(classLoader);
                connectionManager = connectionManagerFactory.create();
            }

            if (connectionManager == null) {
                throw new RuntimeException("Invalid connection manager specified for connector identity = " + serviceInfo.id);
            }

Examples of org.apache.openejb.resource.thread.ManagedScheduledExecutorServiceImplFactory.create()

    @Test
    public void createServiceTest() {
        final ManagedScheduledExecutorServiceImplFactory factory = new ManagedScheduledExecutorServiceImplFactory();
        factory.setThreadFactory(MyThreadFactory.class.getName());
        final ManagedScheduledExecutorServiceImpl executorService = factory.create();
        final ScheduledThreadPoolExecutor poolExecutor = (ScheduledThreadPoolExecutor) executorService.getDelegate();
        Assert.assertEquals(poolExecutor.getThreadFactory().getClass(), ManagedThreadFactoryImpl.class);
    }

    public static class MyThreadFactory {

Examples of org.apache.openejb.test.beans.DatabaseHome.create()

            databaseHome = (DatabaseHome)javax.rmi.PortableRemoteObject.narrow( obj, DatabaseHome.class);
        } catch (Exception e){
            throw new IllegalStateException("Cannot find 'client/tools/DatabaseHome': "+e.getClass().getName()+" "+e.getMessage());
        }
        try {
            database = databaseHome.create();
        } catch (Exception e){
            throw new IllegalStateException("Cannot start database: "+e.getClass().getName()+" "+e.getMessage());
        }
    }
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.