+ name
+ "' must be of type '" + parmTypes[i].getSimpleName() + "'", e);
}
}
Plugin plugin;
if (bean != null)
{
CreationalContext<? extends Plugin> context = (CreationalContext<? extends Plugin>) manager
.createCreationalContext(bean);
if (context != null)
{
plugin = (Plugin) manager.getReference(bean, pluginType, context);
Status status = Status.FAILURE;
ClassLoader current = Thread.currentThread().getContextClassLoader();
Map<Object, Object> executionContext = new HashMap<Object, Object>();
boolean vetoed = false;
try
{
Thread.currentThread().setContextClassLoader(plugin.getClass().getClassLoader());
PreCommandExecution event = new PreCommandExecution(command, originalStatement, parameterArray,
executionContext);
manager.fireEvent(event, new Annotation[0]);
vetoed = event.isVetoed();
if (!vetoed)