* @throws ConfigurationException
*/
public BindReferencePlugin(InitParams params) throws ConfigurationException
{
ValueParam bnParam = params.getValueParam("bind-name");
if (bnParam == null)
{
throw new ConfigurationException("No 'bind-name' parameter found");
}
ValueParam cnParam = params.getValueParam("class-name");
if (cnParam == null)
{
throw new ConfigurationException("No 'class-name' parameter found");
}
ValueParam factoryParam = params.getValueParam("factory");
if (factoryParam == null)
{
throw new ConfigurationException("No 'factory' parameter found");
}
ValueParam flParam = params.getValueParam("factory-location");
String factoryLocation;
if (flParam != null)
factoryLocation = flParam.getValue();
else
factoryLocation = null;
bindName = bnParam.getValue();
reference = new Reference(cnParam.getValue(), factoryParam.getValue(), factoryLocation);