Code example for Dictionary

Methods: get

0
     */ 
    public void activate(ComponentContext context) { 
        @SuppressWarnings("unchecked") 
        Dictionary<String, Object> properties = context.getProperties(); 
 
        path = (String) properties.get("path"); 
        rootUri = (String) properties.get("rootUri"); 
 
        String indexName = (String) properties.get("indexName"); 
 
        if (indexName != null) 
            this.indexName = indexName; 
 
        Boolean deeplyAccessible = (Boolean) properties.get("deeplyAccessible"); 
 
        if (deeplyAccessible != null) 
            this.deeplyAccessible = deeplyAccessible; 
 
        Boolean modifiable = (Boolean) properties.get("modifiable"); 
 
        if (modifiable != null) 
            this.modifiable = modifiable; 
 
        Boolean negotiatingContent = (Boolean) properties 
                .get("negotiatingContent"); 
 
        if (negotiatingContent != null) 
            this.negotiatingContent = negotiatingContent; 
    }