public Webster(String[] options,com.sun.jini.start.LifeCycle lifeCycle) throws BindException {
  if (options == null)   throw new NullPointerException("options are null");
  this.lifeCycle=lifeCycle;
  String roots=null;
  String bindAddress=null;
  for (int i=0; i < options.length; i++) {
    String option=options[i];
    if (option.equals("-port")) {
      i++;
      this.port=Integer.parseInt(options[i]);
    }
 else     if (option.equals("-roots")) {
      i++;
      roots=options[i];
    }
 else     if (option.equals("-bindAddress")) {
      i++;
      bindAddress=options[i];
    }
 else     if (option.equals("-minThreads")) {
      i++;
      minThreads=Integer.parseInt(options[i]);
    }
 else     if (option.equals("-maxThreads")) {
      i++;
      maxThreads=Integer.parseInt(options[i]);
    }
 else     if (option.equals("-soTimeout")) {
      i++;
      soTimeout=Integer.parseInt(options[i]);
    }
 else {
      throw new IllegalArgumentException(option);
    }
  }
  initialize(roots,bindAddress);
}

public Webster ( String [ ] options , com . sun . jini . start . LifeCycle lifeCycle ) throws BindException { if ( options == null ) throw new NullPointerException ( "options are null" ) ; this . lifeCycle = lifeCycle ; String roots = null ; String bindAddress = null ; for ( int i = 0 ; i < options . length ; i ++ ) { String option = options [ i ] ; if ( option . equals ( "-port" ) ) { i ++ ; this . port = Integer . parseInt ( options [ i ] ) ; } else if ( option . equals ( "-roots" ) ) { i ++ ; roots = options [ i ] ; } else if ( option . equals ( "-bindAddress" ) ) { i ++ ; bindAddress = options [ i ] ; } else if ( option . equals ( "-minThreads" ) ) { i ++ ; minThreads = Integer . parseInt ( options [ i ] ) ; } else if ( option . equals ( "-maxThreads" ) ) { i ++ ; maxThreads = Integer . parseInt ( options [ i ] ) ; } else if ( option . equals ( "-soTimeout" ) ) { i ++ ; soTimeout = Integer . parseInt ( options [ i ] ) ; } else { throw new IllegalArgumentException ( option ) ; } } initialize ( roots , bindAddress ) ; }
create a new webster , compatible with the servicestarter mechanism in jini 2 . 0
