Code example for Dictionary

Methods: get

0
   */ 
  @SuppressWarnings("rawtypes") 
  protected void activate(ComponentContext context) {
    // Get the properties from the console. 
    Dictionary props = context.getProperties();
    sharedSecret = OsgiUtil.toString(props.get("sharedSecret"), "e2KS54H35j6vS5Z38nK40");
    hostname = OsgiUtil.toString(props.get("hostname"), "localhost");
    LOGGER.info("Sakai 2 hostname: " + hostname);
    port = OsgiUtil.toInteger(props.get("port"), 80);
    LOGGER.info("Sakai 2 port: " + port);
  } 
 
}