Package org.w3c.jigsaw.config

Examples of org.w3c.jigsaw.config.PropertySet


  // Initialize instance variables:
  this.server = server ;
  this.props  = server.getProperties() ;
  this.props.registerObserver (this) ;
  // Register our property sheet:
  PropertySet set = new SocketConnectionProp("SocketConnectionProp"
               , server);
  server.registerPropertySet(set);
  // Initialize parameters from properties:
  this.minFree    = props.getInteger(MINSPARE_FREE_P, MINSPARE_FREE);
  this.maxFree    = props.getInteger(MAXSPARE_FREE_P, MAXSPARE_FREE);
View Full Code Here


     * Get a property set matching a specific name
     * @return a Resource, the property set found
     */  
    public Resource getPropertySet(String name) {
  for (int i = 0 ; i < propSet.size() ; i++) {
      PropertySet set = (PropertySet) propSet.elementAt(i);
      if ( set.getIdentifier().equals(name) )
    return set;
  }
  return null;
    }
View Full Code Here

TOP

Related Classes of org.w3c.jigsaw.config.PropertySet

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.