mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-04-01 18:00:12 +02:00
improve jersey configuration
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package sonia.scm;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
@@ -42,6 +44,9 @@ import sonia.scm.util.ServiceUtil;
|
||||
public class SCMContext
|
||||
{
|
||||
|
||||
/** Field description */
|
||||
public static final String DEFAULT_PACKAGE = "sonia.scm";
|
||||
|
||||
/** Field description */
|
||||
private static volatile SCMContextProvider provider;
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ package sonia.scm.plugin;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import sonia.scm.SCMContext;
|
||||
import sonia.scm.plugin.ext.ExtensionObject;
|
||||
import sonia.scm.plugin.ext.ExtensionProcessor;
|
||||
import sonia.scm.plugin.ext.JARExtensionScanner;
|
||||
@@ -65,9 +66,6 @@ import javax.xml.bind.JAXB;
|
||||
public class DefaultPluginManager implements PluginManager
|
||||
{
|
||||
|
||||
/** Field description */
|
||||
public static final String DEFAULT_PACKAGE = "sonia.scm";
|
||||
|
||||
/** Field description */
|
||||
public static final String PATH_PLUGINCONFIG = "META-INF/scm/plugin.xml";
|
||||
|
||||
@@ -123,7 +121,7 @@ public class DefaultPluginManager implements PluginManager
|
||||
packageSet = new HashSet<String>();
|
||||
}
|
||||
|
||||
packageSet.add(DEFAULT_PACKAGE);
|
||||
packageSet.add(SCMContext.DEFAULT_PACKAGE);
|
||||
input = new FileInputStream(plugin.getPath());
|
||||
scanner.processExtensions(classLoader, extensions, input, packageSet);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user