Examples of create()


Examples of org.apache.geronimo.network.protocol.PacketFieldFactory.create()

        Byte key = new Byte(buffer.get());
        PacketFieldFactory factory = (PacketFieldFactory) factories.get(key);

        if (factory == null) throw new ProtocolException("No factory registered for " + key);

        return factory.create(buffer);
    }

    private MenuItemPacketFieldReader() {
        register(MenuItem.CREATE, new CreateInstanceMenuItem());
        register(MenuItem.ATTRIBUTE, new SetAttributeMenuItem());

Examples of org.apache.geronimo.samples.daytrader.ejb.TradeHome.create()

      Log.error("TradeDirect:init  Unable to lookup JMS Resources\n\t -- Asynchronous mode will not work correctly and Quote Price change publishing will be disabled",e);
      publishQuotePriceChange = false;     
    }   
    try
    {
      tradeEJB = (Trade) tradeHome.create();         
    }
    catch (Exception e)
    {
      Log.error("TradeDirect:init -- error looking up TradeEJB -- Asynchronous 1-phase will not work", e);
    }         

Examples of org.apache.geronimo.test.JAXBHome.create()

        Object obj = ctx.lookup("/JAXB");
       
        JAXBHome ejbHome =
            (JAXBHome)PortableRemoteObject.narrow(obj, JAXBHome.class);

        JAXBObject ejbObject = ejbHome.create();
   
        List factoryList = ejbObject.testJAXB();

        assertEquals(1, factoryList.size());
        assertEquals("Implementation",

Examples of org.apache.geronimo.test.JAXRHome.create()

        Object obj = ctx.lookup("/JAXR");
       
        JAXRHome ejbHome =
            (JAXRHome)PortableRemoteObject.narrow(obj, JAXRHome.class);

        JAXRObject ejbObject = ejbHome.create();
   
        List factoryList = ejbObject.testJAXR();

        assertEquals(1, factoryList.size());
        assertEquals("Implementation",

Examples of org.apache.geronimo.test.StaxHome.create()

        Object obj = ctx.lookup("/Stax");
       
        StaxHome ejbHome =
            (StaxHome)PortableRemoteObject.narrow(obj, StaxHome.class);

        StaxObject ejbObject = ejbHome.create();
   
        List factoryList = ejbObject.testStax();

        assertEquals(3, factoryList.size());
        assertEquals("InputFactory",

Examples of org.apache.geronimo.test.local.TestLocalHome.create()

          HelloWorldService hello = (HelloWorldService) ctx.lookup("java:comp/env/service/HelloWorldService");
          HelloWorld port = hello.getHelloWorld();
          out.println("<font align=Center face=\"Garamond\"> Check Service Reference : Called Web Service ->"+port.getHelloWorld("Test")+" </font><br>");
      
      TestLocalHome resultLocal = (TestLocalHome)ctx.lookup("java:comp/env/ejb/TestLocalBean");
      TestLocal testLocal = resultLocal.create();
      String echoLocal = testLocal.echoLocal("Test");
      out.println("<font align=Center face=\"Garamond\"> Check EJB Local Reference : Call to bean method returned ->"+echoLocal+" </font><br>");
         
    }catch(Exception e)
    {

Examples of org.apache.geronimo.test.remote.TestHome.create()

    try
    {
      Context ctx = new InitialContext();
      TestHome result = (TestHome)ctx.lookup("java:comp/env/ejb/TestBean");
      //TestHome testHome = (TestHome) PortableRemoteObject.narrow(result, TestHome.class);
      Test test = result.create();
      String echo = test.echo("Test");
      out.println("<font align=Center face=\"Garamond\"> Check EJB Reference : Call to bean method returned ->"+echo+" </font><br>");
     
      DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/MyDataSource");
          Connection con = ds.getConnection();

Examples of org.apache.hadoop.fs.FileContext.create()

          Path userdir = new Path(usersdir, user);
          Path appsdir = new Path(userdir, ContainerLocalizer.APPCACHE);
          appDirs.add(new Path(appsdir, appIdStr));
        }
        containerScriptOutStream =
          lfs.create(nmPrivateContainerScriptPath,
              EnumSet.of(CREATE, OVERWRITE));

        // Set the token location too.
        environment.put(
            ApplicationConstants.CONTAINER_TOKEN_FILE_ENV_NAME,

Examples of org.apache.hadoop.fs.FileSystem.create()

    if (conf.getBoolean("hdfs.append.support", false) == true && hdfs.isFile
    (dstPath)) {
      fsOut = hdfs.append(dstPath);
    } else {
      fsOut = hdfs.create(dstPath);
    }
    cmpOut = codec.createOutputStream(fsOut);
    isFinished = false;
  }

Examples of org.apache.hadoop.fs.FilterFileSystem.create()

    FilterFileSystem filterFS = new FilterFileSystem(fileSystem);
    String filename = "/testFileForceSync";
    Path path = new Path(filename);
    boolean forceSync = true;
    DFSClient dfsClient = ((DistributedFileSystem) fileSystem).getClient();
    FSDataOutputStream out = filterFS.create(
        path, FsPermission.getDefault(), true,
        BUFFER_SIZE, REPLICATION_NUM, (long)BLOCK_SIZE,
        BYTES_PER_CHECKSUM,
        new Progressable() {
          @Override
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.