Code example for Dictionary

Methods: getsize

0
 
	public void configure(Element metadata, Dictionary configuration) {
		Element[] meta = metadata.getElements("check", NAMESPACE);
		if(meta == null) { return;	} 
		// Get handler props 
		props.put("instance.name", configuration.get("instance.name"));
		if(configuration.get("csh.simple") != null) { props.put("Simple", configuration.get("csh.simple")); }
		if(configuration.get("csh.map") != null) {
			Dictionary m = (Dictionary) configuration.get("csh.map");
            if (m.size() > 0) {
                props.put("Map1", m.get("a"));
                props.put("Map2", m.get("b"));
                props.put("Map3", m.get("c"));
            } 
		} 
		props.put("changes", new Integer(changes));
 
	} 
 
	public void initializeComponentFactory(ComponentTypeDescription cd, Element metadata) {