org.springframework.plugin.core.OrderAwarePluginRegistry Java Examples
The following examples show how to use
org.springframework.plugin.core.OrderAwarePluginRegistry.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ModelCache.java From Resource with GNU General Public License v3.0 | 6 votes |
public Function<ResolvedType, ? extends ModelReference> getFactory() { if (factory == null) { List<DefaultTypeNameProvider> providers = new ArrayList(); providers.add(new DefaultTypeNameProvider()); PluginRegistry<TypeNameProviderPlugin, DocumentationType> modelNameRegistry = OrderAwarePluginRegistry.create(providers); TypeNameExtractor typeNameExtractor = new TypeNameExtractor( typeResolver, modelNameRegistry, new JacksonEnumTypeDeterminer()); ModelContext modelContext = inputParam( context.getGroupName(), String.class, context.getDocumentationType(), context.getAlternateTypeProvider(), context.getGenericsNamingStrategy(), context.getIgnorableParameterTypes()); factory = ResolvedTypes.modelRefFactory(modelContext, typeNameExtractor); } return factory; }
Example #2
Source File: ApplicationInstanceConfiguration.java From microservices-dashboard with Apache License 2.0 | 4 votes |
private HalActuatorEndpointsDiscoverer halActuatorEndpointsDiscoverer(WebClient webClient) { return new HalActuatorEndpointsDiscoverer(webClient, new LinkDiscoverers(OrderAwarePluginRegistry.create(Arrays.asList(new HalLinkDiscoverer(), new JsonPathLinkDiscoverer("$._links..['%s']..href", MediaType.parseMediaType("application/*+json")))))); }
Example #3
Source File: IssueTrackerConfiguration.java From spring-data-dev-tools with Apache License 2.0 | 4 votes |
@Bean PluginRegistry<IssueTracker, Project> issueTrackers(List<? extends IssueTracker> plugins) { return OrderAwarePluginRegistry.create(plugins); }