ruleBuilder.withPriority(provider.priority());
}
}
}
else
throw new RewriteException("@" + RewriteConfiguration.class.getSimpleName() + " type [" + type.getName()
+ "] cannot handle context of type [" + configurationContext + "]");
}
else if (enriched.size() < 1)
throw new RewriteException("No service of type [" + type.getName()
+ "] was found while loading configuration.");
else if (enriched.size() > 1)
throw new RewriteException("More than one service of type [" + type.getName()
+ "] was found while loading configuration.");
}
else
{
throw new RewriteException("Class [" + type.getName() + "] annotated with @"
+ RewriteConfiguration.class.getSimpleName()
+ " must implement [" + ConfigurationProvider.class.getName() + "]");
}
chain.proceed();
}