...
| Code Block | ||
|---|---|---|
| ||
Object binderData = getProperty("postProcessor");
PluginManager pluginManager = (PluginManager) AppUtil.getApplicationContext().getBean("pluginManager");
if (binderData != null && binderData instanceof Map) {
Map bdMap = (Map) binderData;
if (bdMap != null && bdMap.containsKey("className") && !bdMap.get("className").toString().isEmpty()) {
String className = temp.get("className").toString();
Plugin p = pluginManager.getPlugin(className);
Map propertiesMap = (Map) bdMap.get("properties");
ApplicationPlugin appPlugin = (ApplicationPlugin) p;
if (appPlugin instanceof PropertyEditable) {
((PropertyEditable) appPlugin).setProperties(bdMap.get("className").toString()propertiesMap);
}
appPlugin.execute(propertiesMap);
}
} |
...