Package net.jini.security

Examples of net.jini.security.ProxyPreparer


              listener,
              mHandback,
              leaseDuration)
      logger.log(Level.FINEST, "Preparing fiddler registration");
      Configuration c = config.getConfiguration();
      ProxyPreparer p = new BasicProxyPreparer();
      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


  Configuration c = config.getConfiguration();
  if (!(c instanceof com.sun.jini.qa.harness.QAConfiguration)) { // if none configuration
      return reg.getLease();
  }
  try {
      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

  if (l != null) {
      Configuration c = getConfig().getConfiguration();
      if (!(c instanceof com.sun.jini.qa.harness.QAConfiguration)) { // none configuration
    return l;
      }
      ProxyPreparer p = (ProxyPreparer)
                  c.getEntry("test",
           "outriggerLeasePreparer",
           ProxyPreparer.class);
      if (p != null) {
    l = (Lease) p.prepareProxy(l);
      }
  }
  return l;
    }
View Full Code Here

  if (reg != null) {
      Configuration c = getConfig().getConfiguration();
      if (!(c instanceof com.sun.jini.qa.harness.QAConfiguration)) { // none configuration
    return reg;
      }
      ProxyPreparer p = (ProxyPreparer)
                  c.getEntry("test",
           "outriggerEventRegistrationPreparer",
           ProxyPreparer.class);
      if (p != null) {
    reg = (EventRegistration) p.prepareProxy(reg);
      }
  }
  return reg;
    }
View Full Code Here

              listener,
              mHandback,
              leaseDuration)
      logger.log(Level.FINEST, "Preparing fiddler registration");
      Configuration c = config.getConfiguration();
      ProxyPreparer p = new BasicProxyPreparer();
      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

  Configuration c = config.getConfiguration();
  if (!(c instanceof com.sun.jini.qa.harness.QAConfiguration)) { // if none configuration
      return reg.getLease();
  }
  try {
      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

            operationsLogger.entering(
    TxnManagerImpl.class.getName(), "doInit", config);
  }
        // Get activatable settings, if activated
        if (activationID != null) {
            ProxyPreparer activationSystemPreparer =
                (ProxyPreparer) Config.getNonNullEntry(config,
                    TxnManager.MAHALO, "activationSystemPreparer",
                    ProxyPreparer.class, new BasicProxyPreparer());
            if(initLogger.isLoggable(Level.CONFIG)) {
    initLogger.log(Level.CONFIG, "activationSystemPreparer: {0}",
              activationSystemPreparer);   
      }
            activationSystem =
                (ActivationSystem) activationSystemPreparer.prepareProxy(
                    ActivationGroup.getSystem());
            if(initLogger.isLoggable(Level.CONFIG)) {
    initLogger.log(Level.CONFIG, "Prepared activation system is: {0}",
                    activationSystem);
            }
            ProxyPreparer activationIdPreparer =
                (ProxyPreparer) Config.getNonNullEntry(config,
                    TxnManager.MAHALO, "activationIdPreparer",
                    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.CONFIG)) {
    initLogger.log(Level.CONFIG, "Prepared activationID is: {0}",
                    activationID);
            }
      activationPrepared = true;
            exporter = (Exporter)Config.getNonNullEntry(config,
          TxnManager.MAHALO, "serverExporter", Exporter.class,
                new ActivationExporter(
        activationID,
                    new BasicJeriExporter(
      TcpServerEndpoint.getInstance(0),
      new BasicILFactory(), false, true)),
        activationID);
            if(initLogger.isLoggable(Level.CONFIG)) {
    initLogger.log(Level.CONFIG,
              "Activatable service exporter is: {0}", exporter);
      }
        } else {
            exporter = (Exporter) Config.getNonNullEntry(config,
                TxnManager.MAHALO, "serverExporter", Exporter.class,
                new BasicJeriExporter(
        TcpServerEndpoint.getInstance(0),
        new BasicILFactory(), false, true));
            if(initLogger.isLoggable(Level.CONFIG)) {
    initLogger.log(Level.CONFIG,
              "Non-activatable service exporter is: {0}", exporter);
            }
  }
 
  ProxyPreparer recoveredParticipantPreparer =
      (ProxyPreparer)Config.getNonNullEntry(config,
                TxnManager.MAHALO, "recoveredParticipantPreparer",
    ProxyPreparer.class, new BasicProxyPreparer());
        if(initLogger.isLoggable(Level.CONFIG)) {
      initLogger.log(Level.CONFIG, "Recovered participant preparer is: {0}",
View Full Code Here

     *                  ignored when this lease is cancled.
     */
    public void addOutriggerLease(Lease lease, boolean unknownOk)
  throws TestException
    {
  ProxyPreparer p = null;
  Configuration c = getConfig().getConfiguration();
  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

     *                  ignored when this lease is cancled.
     */
    public void addMahaloLease(Lease lease, boolean unknownOk)
  throws TestException
    {
  ProxyPreparer p = null;
  Configuration c = getConfig().getConfiguration();
  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

                                                         ilFactory,
                                                         false,
                                                         true);
        /* For the activatable server */
        if(activationID != null) {
            ProxyPreparer aidPreparer =
              (ProxyPreparer)Config.getNonNullEntry(config,
                                                    COMPONENT_NAME,
                                                    "activationIdPreparer",
                                                    ProxyPreparer.class,
                                                    new BasicProxyPreparer());
            ProxyPreparer aSysPreparer =
              (ProxyPreparer)Config.getNonNullEntry(config,
                                                    COMPONENT_NAME,
                                                    "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

TOP

Related Classes of net.jini.security.ProxyPreparer

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.