src/main/java/com/googlecode/fascinator/harvester/workflow/WorkflowHarvester.java
@Override
    public void init() throws HarvesterException {
        forceLocalStorage = getJsonConfig().getBoolean(true,
                "harvester", "workflow-harvester", "force-storage");
        forceUpdate = getJsonConfig().getBoolean(false,
                "harvester", "workflow-harvester", "force-update");

        // Order is significant
        renderChains = new LinkedHashMap<String, Map<String, List<String>>>();
        JsonObject renderTypes = getJsonConfig().getObject("renderTypes");
        if (renderTypes != null) {
            for (Object name : renderTypes.keySet()) {
                Map<String, List<String>> details = new HashMap<String, List<String>>();
                JsonObject chain = (JsonObject) renderTypes.get(name);
                details.put("fileTypes",
                        JsonSimple.getStringList(chain, "fileTypes"));
                details.put("harvestQueue",
                        JsonSimple.getStringList(chain, "harvestQueue"));
                details.put("indexOnHarvest",
                        JsonSimple.getStringList(chain, "indexOnHarvest"));
                details.put("renderQueue",
                        JsonSimple.getStringList(chain, "renderQueue"));
                renderChains.put((String) name, details);
            }
        }
    }
@Override
    public void init() throws HarvesterException {
        forceLocalStorage = getJsonConfig().getBoolean(true,
                "harvester", "workflow-harvester", "force-storage");
        forceUpdate = getJsonConfig().getBoolean(false,
                "harvester", "workflow-harvester", "force-update");

        // Order is significant
        renderChains = new LinkedHashMap<String, Map<String, List<String>>>();
        JsonObject renderTypes = getJsonConfig().getObject("renderTypes");
        if (renderTypes != null) {
            for (Object name : renderTypes.keySet()) {
                Map<String, List<String>> details = new HashMap<String, List<String>>();
                JsonObject chain = (JsonObject) renderTypes.get(name);
                details.put("fileTypes",
                        JsonSimple.getStringList(chain, "fileTypes"));
                details.put("harvestQueue",
                        JsonSimple.getStringList(chain, "harvestQueue"));
                details.put("indexOnHarvest",
                        JsonSimple.getStringList(chain, "indexOnHarvest"));
                details.put("renderQueue",
                        JsonSimple.getStringList(chain, "renderQueue"));
                renderChains.put((String) name, details);
            }
        }
    }
@ Override public void init ( ) throws HarvesterException { forceLocalStorage = getJsonConfig ( ) . getBoolean ( true , "harvester" , "workflow-harvester" , "force-storage" ) ; forceUpdate = getJsonConfig ( ) . getBoolean ( false , "harvester" , "workflow-harvester" , "force-update" ) ; // Order is significant renderChains = new LinkedHashMap < String , Map < String , List < String > > > ( ) ; JsonObject renderTypes = getJsonConfig ( ) . getObject ( "renderTypes" ) ; if ( renderTypes != null ) { for ( Object name : renderTypes . keySet ( ) ) { Map < String , List < String > > details = new HashMap < String , List < String > > ( ) ; JsonObject chain = ( JsonObject ) renderTypes . get ( name ) ; details . put ( "fileTypes" , JsonSimple . getStringList ( chain , "fileTypes" ) ) ; details . put ( "harvestQueue" , JsonSimple . getStringList ( chain , "harvestQueue" ) ) ; details . put ( "indexOnHarvest" , JsonSimple . getStringList ( chain , "indexOnHarvest" ) ) ; details . put ( "renderQueue" , JsonSimple . getStringList ( chain , "renderQueue" ) ) ; renderChains . put ( ( String ) name , details ) ; } } }
Basic init() function. Notice the lack of parameters. This is not part
of the Plugin API but from the GenericHarvester implementation. It will
be called following the constructor verifies configuration is available.

@throws HarvesterException : If there are problems during instantiation
Basic init () function . Notice the lack of parameters . This is not part of the Plugin API but from the GenericHarvester implementation . It will be called following the constructor verifies configuration is available .