Package net.jini.config

Examples of net.jini.config.Configuration


public class DestroySharedGroupCreateEmptyTest
    extends DestroySharedGroupCreateBaseTest
{
     public void run() throws Exception {
  Configuration config = EmptyConfiguration.INSTANCE;
  Object[] params = new Object[] {new ServiceDescriptor[] {}, config};
        getDestroyMethod().invoke(null, params);
  return;
    }
View Full Code Here


    public Object getProxy() { return serverStub; }

    public TestGeneratorImpl(String[] configArgs, LifeCycle lc)
  throws Exception
    {
        final Configuration config =
            ConfigurationProvider.getInstance(configArgs);
        LoginContext loginContext = (LoginContext) config.getEntry(
            GENERATOR, "loginContext", LoginContext.class, null);
        if (loginContext != null) {
            doInitWithLogin(config, loginContext);
        } else {
            doInit(config);
View Full Code Here

  init(configArgs);
   
    }
   
    private void init(String[] configArgs) throws Exception {
        final Configuration config =
            ConfigurationProvider.getInstance(configArgs);
        LoginContext loginContext = (LoginContext) config.getEntry(
            TEST_SERVICE, "loginContext", LoginContext.class, null);
        if (loginContext != null) {
            doInitWithLogin(config, loginContext);
        } else {
            doInit(config);
View Full Code Here

    public TrustVerifier getProxyVerifier() {
  return new BasicProxyTrustVerifier(serverStub);
    }   

    public TestPullListenerImpl(String[] configArgs, LifeCycle lc) throws Exception {
        final Configuration config =
            ConfigurationProvider.getInstance(configArgs);
        LoginContext loginContext = (LoginContext) config.getEntry(
            LISTENER, "loginContext", LoginContext.class, null);
        if (loginContext != null) {
            doInitWithLogin(config, loginContext);
        } else {
            doInit(config);
View Full Code Here

        public LDSEventListener(RegistrationInfo regInfo)
      throws RemoteException
        {
            super();
            this.regInfo = regInfo;
      Configuration c = getConfig().getConfiguration();
      Exporter exporter = QAConfig.getDefaultExporter();
      registrarPreparer = new BasicProxyPreparer();
      if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
    try {
        exporter = (Exporter) c.getEntry("test",
                 "fiddlerListenerExporter",
                 Exporter.class);
        registrarPreparer =
      (ProxyPreparer) c.getEntry("test",
               "reggiePreparer",
               ProxyPreparer.class);
    } catch (ConfigurationException e) {
        throw new RemoteException("Configuration error", e);
    }
View Full Code Here

  throws RemoteException
    {
  // wrap a configuration exception in a RemoteException to avoid having
  // to redefine the constructors for a million subclasses of BasicListener
  Exporter exporter = QAConfig.getDefaultExporter();
  Configuration c = config.getConfiguration();
  if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
      try {
    exporter = (Exporter) c.getEntry("test",
             "reggieListenerExporter",
             Exporter.class);
      } catch (ConfigurationException e) {
    throw new RemoteException("Configuration problem", e);
      }
View Full Code Here

  if (admin == null) {
      throw new TestException(
    "Could not get service's Administrable interface");
  }

        Configuration serviceConf = getConfig().getConfiguration();
  ProxyPreparer preparer = new BasicProxyPreparer();
  if (serviceConf instanceof com.sun.jini.qa.harness.QAConfiguration) {
      preparer =
    (ProxyPreparer) serviceConf.getEntry("test",
                 "mercuryAdminPreparer",
                 ProxyPreparer.class);
  }
  logger.log(Level.INFO, "\tadmin proxy preparer: " + preparer);
  admin = preparer.prepareProxy(admin);
View Full Code Here

  if (mr == null) {
      throw new TestException(
    "MailboxRegistration argument cannot be null");
  }

        Configuration serviceConf = getConfig().getConfiguration();
        ProxyPreparer preparer = new BasicProxyPreparer();
        if (serviceConf instanceof com.sun.jini.qa.harness.QAConfiguration) {
            preparer =
    (ProxyPreparer) serviceConf.getEntry("test",
                 "mercuryListenerPreparer",
                 ProxyPreparer.class);
        }
  logger.log(Level.INFO, "\tmailbox listener preparer: " + preparer);
  RemoteEventListener proxy =
View Full Code Here

  if (mr == null) {
      throw new TestException(
    "MailboxPullRegistration argument cannot be null");
  }

        Configuration serviceConf = getConfig().getConfiguration();
        ProxyPreparer preparer = new BasicProxyPreparer();
        if (serviceConf instanceof com.sun.jini.qa.harness.QAConfiguration) {
            preparer =
    (ProxyPreparer) serviceConf.getEntry("test",
                 "mercuryListenerPreparer",
                 ProxyPreparer.class);
        }
  logger.log(Level.INFO, "\tmailbox listener preparer: " + preparer);
  RemoteEventListener proxy =
View Full Code Here

  if (mr == null) {
      throw new TestException(
    "MailboxRegistration argument cannot be null");
  }

        Configuration serviceConf = getConfig().getConfiguration();
        ProxyPreparer preparer = new BasicProxyPreparer();
        if (serviceConf instanceof com.sun.jini.qa.harness.QAConfiguration) {
            preparer =
    (ProxyPreparer) serviceConf.getEntry("test",
                 "mercuryLeasePreparer",
                 ProxyPreparer.class);
        }
  logger.log(Level.INFO, "\tmailbox lease preparer: " + preparer);
  Lease proxy =
View Full Code Here

TOP

Related Classes of net.jini.config.Configuration

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.