Package net.jini.config

Examples of net.jini.config.Configuration


    protected Exception testResource(String[] options, String content,
            ClassLoader cl) throws IOException {
        Exception result = null;

        try {
            Configuration conf = ConfigurationProvider.getInstance(options, cl);

            if (!conf.getClass().getName().equals(content)) {
                throw new AssertionError(
                        "ConfigurationProvider.getInstance method"
                        + " returns invalid class");
            }
        } catch (ConfigurationException ce) {
View Full Code Here


            getServiceActivationHost(),
            getServiceActivationPort());
                  
      // get starter config and preparer name now so it will
      // show up in the log
      Configuration starterConfig = getStarterConfiguration();
      getServicePreparerName();
      logServiceParameters(); // log debug output
      logOverrides(serviceConfigArgs);
      if (transformer != null) {
    desc = (SharedActivatableServiceDescriptor)
View Full Code Here

               getServiceJVM(),
               getServiceOptions(),
               getServiceProperties(),
               getActivationHost(),
               getActivationPort());
      Configuration starterConfig = getStarterConfiguration();
      logServiceParameters(); // log debug output
      desc.create(starterConfig);
      String groupImpl = getMandatoryParameter("implPrefix");
      ActivatableServiceStarterAdmin implAdmin =
    new ActivatableServiceStarterAdmin(config,
View Full Code Here

      config.loadTestConfiguration();
  } catch (TestException e) {
      e.printStackTrace();
  }
  manager = new AdminManager(config);
  Configuration c = config.getConfiguration(); // the davis config
  LoginContext context = null;
  try {
      context = (LoginContext) c.getEntry("test",
            "loginContext",
            LoginContext.class,
            null);
      if (context != null) {
    logger.log(Level.FINEST, "got a login context");
View Full Code Here

     */
    void init(String[] configOptions, LifeCycle lifeCycle)
  throws Exception
    {
  try {
      final Configuration config = ConfigurationProvider.getInstance(
    configOptions, getClass().getClassLoader());
      this.lifeCycle = lifeCycle;
      loginContext = (LoginContext) config.getEntry(
    NORM, "loginContext", LoginContext.class, null);
      if (loginContext == null) {
    initAsSubject(config);
      } else {
    loginContext.login();
View Full Code Here

    {
        if (operationsLogger.isLoggable(Level.FINER)) {
            operationsLogger.entering(TxnManagerImpl.class.getName(), "init",
          (Object[])configArgs );
  }
        final Configuration config =
            ConfigurationProvider.getInstance(
    configArgs, getClass().getClassLoader());
        loginContext = (LoginContext) config.getEntry(
            TxnManager.MAHALO, "loginContext", LoginContext.class, null);
        if (loginContext != null) {
            doInitWithLogin(config, loginContext);
        } else {
            doInit(config);
View Full Code Here

  logger.entering(SharedGroupImpl.class.getName(), "SharedGroupImpl",
            new Object[] { activationID, data});
  this.activationID = activationID;
        try {
            String[] configArgs = (String[])data.get()
            final Configuration config =
                ConfigurationProvider.getInstance(configArgs);
            loginContext = (LoginContext) config.getEntry(
                START_PACKAGE, "loginContext", LoginContext.class, null);
            if (loginContext != null) {
                doInitWithLogin(config, loginContext);
            } else {
                doInit(config);
View Full Code Here

      final boolean persistent,
      final LifeCycle lifeCycle)
  throws Exception
    {
  try {
      final Configuration config = ConfigurationProvider.getInstance(
    configArgs, getClass().getClassLoader());

            loginAndRun(config,activationID,persistent,lifeCycle);
  } catch (Throwable t) {
      logger.log(Level.SEVERE, "Reggie initialization failed", t);
View Full Code Here

        "com.sun.jini.test.impl.mercury.listener";

    public Object getProxy() { return serverStub; }

    public TestListenerImpl(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

    {
  ProxyTrust proxy;

  public ProxyTrustImpl() {
      try {
    Configuration c = QAConfig.getConfig().getConfiguration();
    Exporter exporter = (Exporter) c.getEntry("test",
                "testLeaseVerifierExporter",
                Exporter.class,
                null);
    if (exporter == null) {
        return; // configuration isn't secure
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.