1 package com.openinventions.webappfilter.processor; 2 3 import com.openinventions.metaframework.*; 4 import org.apache.commons.logging.*; 5 import java.util.*; 6 7 public class PluginInitialize implements Processor { 8 private static final Log log = LogFactory.getLog(PluginInitialize.class); 9 10 public void process(State state, Element context) throws Exception { 11 Iterator plugins = context.getElements("plugin"); 12 while (plugins.hasNext()) { 13 Element pluginContext = (Element) plugins.next(); 14 Plugin plugin = (Plugin) state.get(pluginContext.getValue("processor")); 15 plugin.init(state, pluginContext); 16 } 17 } 18 } 19 70 | Popular Tags |