Package net.jini.activation

Examples of net.jini.activation.ActivationExporter


      cb.activated();
  }
  Exporter basicExporter =
      new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
          new BasicILFactory(), false, true);
  exporter = new ActivationExporter(id, basicExporter);
  stub = exporter.export(this);
    }
View Full Code Here


      }   
            activationPrepared = true;
 
            exporter = (Exporter)Config.getNonNullEntry(config,
          MERCURY, "serverExporter", Exporter.class,
    new ActivationExporter(
        activationID,
        new BasicJeriExporter(
            TcpServerEndpoint.getInstance(0),
      new BasicILFactory(), false, true)),
    activationID);
View Full Code Here

  String exportType = (String) stuff[0];
  if (exportType.equals("basic")) {
      BasicJeriExporter basicExp =
    new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
              new BasicILFactory(), true, true);
      exporter = new ActivationExporter(id, basicExp);
      stub =  exporter.export(this);
  } else {
      stub = Activatable.exportObject(this, id, 0);
  }
View Full Code Here

      port = ((Integer) obj.get()).intValue();
  }
  Exporter basicExporter =
      new BasicJeriExporter(TcpServerEndpoint.getInstance(port),
          new BasicILFactory(), false, true);
  exporter = new ActivationExporter(id, basicExporter);
  stub = exporter.export(this);
    }
View Full Code Here

  {
      myAid = aid;
      Exporter basicExporter =
    new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
              new BasicILFactory(), false, true);
      exp = new ActivationExporter(aid, basicExporter);
      proxy = exp.export(this);
  }
View Full Code Here

    } else if (exportType.equals("jrmp")) {
        uexporter = new JrmpExporter();
    } else {
        throw new ExportException("unknown exportType");
    }
    exporter = new ActivationExporter(id, uexporter);
    stub = exporter.export(impl);
      }
      System.err.println("stub = " + stub.toString());
      return stub;
  }
View Full Code Here

     */
    public void run() throws Exception {
        // action step 1
        ActivationID aid = new FakeActivationID(logger);
        Exporter exporter = new FakeExporter(logger);
        ActivationExporter activationExporter =
                new ActivationExporter(aid, exporter);

        // action step 2
        // action step 3
        aid = new FakeActivationID(logger);

        try {
            activationExporter = new ActivationExporter(aid, null);
            throw new TestException("NullPointerException should be thrown");
        } catch (NullPointerException ignore) {
            // action step 4
        }

        // action step 5
        exporter = new FakeExporter(logger);

        try {
            activationExporter = new ActivationExporter(null, exporter);
            throw new TestException("NullPointerException should be thrown");
        } catch (NullPointerException ignore) {
            // action step 6
        }
    }
View Full Code Here

     */
    public void run() throws Exception {
        // action step 1
        ActivationID aid = new FakeActivationID(logger);
        Exporter exporter = new FakeExporter(logger);
        ActivationExporter activationExporter = new ActivationExporter(aid,
                exporter);
        // action step 2
        // action step 3

        try {
            Remote result = activationExporter.export(null);
            throw new TestException(
                    "NullPointerException should be thrown");
        } catch (NullPointerException t) {
            // action step 4
        }
        // action step 5
        Remote fup = new MethodSetProxy(logger);
        // action step 6
        Remote result2 = activationExporter.export(fup);

        try {
            Remote result3 = activationExporter.export(fup);
            throw new TestException(
                    "IllegalStateException should be thrown");
        } catch (IllegalStateException t) {
            // action step 7
        }
View Full Code Here

     * This method performs all actions mentioned in class description.
     */
    public void run() throws Exception {
        ActivationID aid = new FakeActivationID(logger);
        Exporter exporter = new FakeExporter(logger);
        ActivationExporter activationExporter =
          new ActivationExporter(aid, exporter);
        Remote fup = new MethodSetProxy(logger);
        Remote result = activationExporter.export(fup);
        assertion(result instanceof Proxy);
        assertion(result instanceof RemoteMethodSetInterface);
        InvocationHandler ih = Proxy.getInvocationHandler(result);
        assertion(ih instanceof ActivatableInvocationHandler);
    }
View Full Code Here

     */
    public void run() throws Exception {
        // action step 1
        ActivationID aid = new FakeActivationID(logger);
        Exporter exporter = new FakeExporter(logger);
        ActivationExporter activationExporter =
                new ActivationExporter(aid, exporter);

        // action step 2
        // action step 3
        Remote fup = new MethodSetProxy(logger);

        // action step 4
        try {
            boolean result2 = activationExporter.unexport(false);
            throw new TestException(
                    "IllegalStateException should be thrown");
        } catch (IllegalStateException t) {
            // action step 5
        }

        // action step 6
        try {
            boolean result2 = activationExporter.unexport(true);
            throw new TestException(
                    "IllegalStateException should be thrown");
        } catch (IllegalStateException t) {
            // action step 7
        }
View Full Code Here

TOP

Related Classes of net.jini.activation.ActivationExporter

Copyright © 2018 www.massapicom. 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.