*/
public abstract class AbstractResourceMethodDispatchProvider implements ResourceMethodDispatchProvider {
public RequestDispatcher create(AbstractResourceMethod abstractResourceMethod) {
final InjectableValuesProvider pp = getInjectableValuesProvider(abstractResourceMethod);
if (pp == null) {
return null;
}
if (pp.getInjectables().contains(null)) {
// Missing dependency
for (int i = 0; i < pp.getInjectables().size(); i++) {
if (pp.getInjectables().get(i) == null) {
Errors.missingDependency(abstractResourceMethod.getMethod(), i);
}
}
return null;
}