Package net.jini.security

Examples of net.jini.security.ProxyPreparer.prepareProxy()


  /* Register the activation descriptor */
  ProxyPreparer actIdPreparer = (ProxyPreparer) config.getEntry(
      "com.sun.jini.example.hello.Server", "activationIdPreparer",
      ProxyPreparer.class, new BasicProxyPreparer());
  ActivationID aid = (ActivationID) actIdPreparer.prepareProxy(
      actSys.registerObject(actDesc));

  /* Activate the server */
  aid.activate(true);

 
View Full Code Here


    {
  /* Prepare the activation ID */
  ProxyPreparer actIdPreparer = (ProxyPreparer) config.getEntry(
      "com.sun.jini.example.hello.Server", "activationIdPreparer",
      ProxyPreparer.class, new BasicProxyPreparer());
  aid = (ActivationID) actIdPreparer.prepareProxy(aid);

  /* Provide the activation ID to the exporter */
  return (Exporter) config.getEntry(
      "com.sun.jini.example.hello.Server", "exporter", Exporter.class,
      Configuration.NO_DEFAULT, aid);
View Full Code Here

        ProxyPreparer.class, new BasicProxyPreparer());

      this.activationID = (ActivationID)
    activationIdPreparer.prepareProxy(activationID);
      activationSystem = (ActivationSystem)
    activationSystemPreparer.prepareProxy(
        ActivationGroup.getSystem());

      serverExporter = (Exporter) Config.getNonNullEntry(
    config, COMPONENT, "serverExporter", Exporter.class,
    new ActivationExporter(
View Full Code Here

            "/java.rmi.activation.ActivationSystem");
            ProxyPreparer activationSystemPreparer =
    (ProxyPreparer) Config.getNonNullEntry(config,
        START_PACKAGE, "activationSystemPreparer",
        ProxyPreparer.class, new BasicProxyPreparer());
      sys = (ActivationSystem) activationSystemPreparer.prepareProxy(sys);
  } catch (Exception e) {
      throw new ActivationException(
          "ActivationSystem @ " + host + ":" + port +
    " could not be obtained", e);
  }
View Full Code Here

                                                    "activationSystemPreparer",
                                                    ProxyPreparer.class,
                                                    new BasicProxyPreparer());
            activationID = (ActivationID)aidPreparer.prepareProxy
                                                               (activationID);
            activationSystem = (ActivationSystem)aSysPreparer.prepareProxy
                                                            (activationSystem);
            defaultExporter = new ActivationExporter(activationID,
                                                     defaultExporter);
        }//endif(activationID != null)
View Full Code Here

  }
  try {
      ProxyPreparer p = (ProxyPreparer) c.getEntry(entryTokens[0],
               entryTokens[1],
               ProxyPreparer.class);
      return p.prepareProxy(target);
  } catch (ConfigurationException e) {
      throw new TestException("Configuration Error preparing "
            + target, e);
  } catch (RemoteException e) {
      throw new TestException("Remote Exception preparing "
View Full Code Here

               ProxyPreparer.class);

    activationID = (ActivationID)
        activationIdPreparer.prepareProxy(activationID);
    activationSystem = (ActivationSystem)
        activationSystemPreparer.prepareProxy(activationSystem);
      }
  }
  if (noneConfiguration) {
      serverExporter =
    new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
View Full Code Here

             null);
    if (p == null) {
        throw new TestException("No preparer found for entry "
              + preparerName);
    }
    proxy = p.prepareProxy(proxy);
      } catch (ConfigurationException e) {
    throw new TestException("Configuration problem", e);
      } catch (RemoteException e) {
    throw new TestException("Remote Exception preparing proxy", e);
      }
View Full Code Here

      preparer =
    (ProxyPreparer) serviceConf.getEntry("test",
                 "mahaloAdminPreparer",
                 ProxyPreparer.class);
  }
  admin = preparer.prepareProxy(admin);
  return admin;
   
   
    protected Lease getTransactionManagerLease(TransactionManager.Created mr)
        throws java.io.IOException, TestException, ConfigurationException
View Full Code Here

      preparer =
    (ProxyPreparer) serviceConf.getEntry("test",
                 "mahaloLeasePreparer",
                 ProxyPreparer.class);
  }
  Lease proxy = (Lease) preparer.prepareProxy(mr.lease);
  return proxy;
   

    protected Created[] getCreateds(TransactionManager mb, long[] durations)
  throws RemoteException, TestException, ConfigurationException
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.