use of org.glassfish.jersey.server.model.ModelProcessor in project jersey by jersey.
the class RuntimeLocatorModelBuilder method enhance.
private ResourceModel enhance(ResourceModel subResourceModel) {
final Iterable<RankedProvider<ModelProcessor>> allRankedProviders = Providers.getAllRankedProviders(injectionManager, ModelProcessor.class);
final Iterable<ModelProcessor> modelProcessors = Providers.sortRankedProviders(new RankedComparator<ModelProcessor>(), allRankedProviders);
for (final ModelProcessor modelProcessor : modelProcessors) {
subResourceModel = modelProcessor.processSubResource(subResourceModel, config);
validateSubResource(subResourceModel);
}
return subResourceModel;
}
use of org.glassfish.jersey.server.model.ModelProcessor in project jersey by jersey.
the class ApplicationHandler method processResourceModel.
private ResourceModel processResourceModel(ResourceModel resourceModel) {
final Iterable<RankedProvider<ModelProcessor>> allRankedProviders = Providers.getAllRankedProviders(injectionManager, ModelProcessor.class);
final Iterable<ModelProcessor> modelProcessors = Providers.sortRankedProviders(new RankedComparator<ModelProcessor>(), allRankedProviders);
for (final ModelProcessor modelProcessor : modelProcessors) {
resourceModel = modelProcessor.processResourceModel(resourceModel, getConfiguration());
}
return resourceModel;
}
Aggregations