mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-10 08:36:53 +01:00
improve plugin scan performance
This commit is contained in:
@@ -98,17 +98,19 @@ public class PluginResource
|
||||
*
|
||||
*
|
||||
* @param version
|
||||
* @param os
|
||||
* @param arch
|
||||
* @param snapshot
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GET
|
||||
@Produces(MediaType.APPLICATION_XML)
|
||||
public Response getPlugins(
|
||||
@PathParam("version") String version,
|
||||
@QueryParam("os") String os,
|
||||
@QueryParam("arch") String arch,
|
||||
@DefaultValue("false") @QueryParam("snapshot") boolean snapshot)
|
||||
public Response getPlugins(@PathParam("version") String version,
|
||||
@QueryParam("os") String os,
|
||||
@QueryParam("arch") String arch,
|
||||
@DefaultValue("false")
|
||||
@QueryParam("snapshot") boolean snapshot)
|
||||
{
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
@@ -117,8 +119,7 @@ public class PluginResource
|
||||
}
|
||||
|
||||
List<PluginInformation> plugins =
|
||||
backend.getPlugins(new DefaultPluginFilter(version, os, arch,
|
||||
snapshot));
|
||||
backend.getPlugins(new DefaultPluginFilter(version, os, arch, snapshot));
|
||||
PluginCenter pc = new PluginCenter();
|
||||
|
||||
pc.setPlugins(getNewestPlugins(plugins));
|
||||
|
||||
Reference in New Issue
Block a user