Package net.jini.security

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


  if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
      try {
    p = (ProxyPreparer) c.getEntry("test",
                 "outriggerLeasePreparer",
                 ProxyPreparer.class);
    lease = (Lease) p.prepareProxy(lease);
      } catch (ConfigurationException e) {
    throw new TestException("Configuration error", e);
      } catch (RemoteException e) {
    throw new TestException("RemoteException preparing lease",e);
      }
View Full Code Here


  if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
      try {
    p = (ProxyPreparer) c.getEntry("test",
                 "mahaloLeasePreparer",
                 ProxyPreparer.class);
    lease = (Lease) p.prepareProxy(lease);
      } catch (ConfigurationException e) {
    throw new TestException("Configuration error", e);
      } catch (RemoteException e) {
    throw new TestException("RemoteException preparing lease",e);
      }
View Full Code Here

          !(exporter instanceof AlreadyExportedExporter);
      unexportTimeout = getInt(config, "unexportTimeout",
             60000);
      unexportWait = getInt(config, "unexportWait", 10);
      ActivationSystem sys = (ActivationSystem)
          sysPreparer.prepareProxy(id.getSystem());
      ActivationGroupImpl.incarnation = incarnation;
      groupID = id;
      state = CREATING;
      ActivationGroupID gid = (sys == id.getSystem() ?
             id : new WrappedGID(id, sys));
View Full Code Here

            if (initLogger.isLoggable(Level.CONFIG)) {
                initLogger.log(Level.CONFIG, "activationSystemPreparer: {0}",
          activationSystemPreparer);
      }   
            activationSystem =
                (ActivationSystem) activationSystemPreparer.prepareProxy(
                    ActivationGroup.getSystem());
            if (initLogger.isLoggable(Level.FINEST)) {
                initLogger.log(Level.FINEST, "Prepared activation system is: {0}",
          activationSystem);
      }   
View Full Code Here

        ProxyPreparer.class, new BasicProxyPreparer());
            if (initLogger.isLoggable(Level.CONFIG)) {
                initLogger.log(Level.CONFIG, "activationIdPreparer: {0}",
          activationIdPreparer);
      }   
            activationID = (ActivationID) activationIdPreparer.prepareProxy(
                activationID);
            if (initLogger.isLoggable(Level.FINEST)) {
                initLogger.log(Level.FINEST, "Prepared activationID is: {0}",
          activationID);
      }   
View Full Code Here

        ActivationSystem.SYSTEM_PORT);
  Registry reg = LocateRegistry.getRegistry(host, port);
  ActivationSystem sys =
      (ActivationSystem) reg.lookup(ActivationSystem.class.getName());
  ProxyPreparer sysPreparer = getPreparer(config, "systemPreparer");
  sys = (ActivationSystem) sysPreparer.prepareProxy(sys);
  sys.shutdown();
    }

    /**
     * Retrieves text resources from the locale-specific properties file.
View Full Code Here

      if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
      p = (ProxyPreparer) c.getEntry("test",
                 "fiddlerRegistrationPreparer",
                 ProxyPreparer.class);
      }
      registrationMap.put(p.prepareProxy(ldsReg),listener);
  } catch (ConfigurationException e) {
      throw new RemoteException("Configuration Error", e);
  }
    }//end doRegistration
View Full Code Here

      ProxyPreparer p = (ProxyPreparer) c.getEntry("test",
               "fiddlerLeasePreparer",
               ProxyPreparer.class);
      Lease l = reg.getLease();
      logger.log(Level.FINEST, "Returning prepared fiddler lease");
      return (Lease) p.prepareProxy(l);
  } catch (ConfigurationException e) {
      throw new RemoteException("Configuration Error", e);
  }
    }
View Full Code Here

    final List prepared = new java.util.LinkedList();
    for (int i=0; i<locators.length; i++) {
        final LookupLocator locator = locators[i];
        try {
      prepared.add(recoveredLookupLocatorPreparer.
             prepareProxy(locator));
        } catch (Throwable t) {
      logger.log(Level.INFO,
          "Encountered exception preparing lookup locator " +
          "for " + locator + ", dropping locator", t);
View Full Code Here

  /* Get the activation system */
  ProxyPreparer actSysPreparer = (ProxyPreparer) config.getEntry(
      "com.sun.jini.example.hello.Server", "activationSystemPreparer",
      ProxyPreparer.class, new BasicProxyPreparer());
  ActivationSystem actSys =
      (ActivationSystem) actSysPreparer.prepareProxy(
    ActivationGroup.getSystem());

  /* Create the activation group */
  ActivationGroupID gid = actSys.registerGroup(groupDesc);

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.