public class LibExtClassLoaderHelper extends Object
The drawback is that those jars will not be available in the OSGi classloader.
Alternatives to placing jars in lib/ext:
Modifier and Type | Class and Description |
---|---|
static interface |
LibExtClassLoaderHelper.IFilesInJettyHomeResourcesProcessor
IFilesInJettyHomeResourcesProcessor
Interface for callback impls
|
Modifier and Type | Field and Description |
---|---|
static Set<LibExtClassLoaderHelper.IFilesInJettyHomeResourcesProcessor> |
registeredFilesInJettyHomeResourcesProcessors |
Constructor and Description |
---|
LibExtClassLoaderHelper() |
Modifier and Type | Method and Description |
---|---|
static ClassLoader |
createLibEtcClassLoader(File jettyHome,
ClassLoader parentClassLoader) |
static ClassLoader |
createLibExtClassLoader(List<File> jarsContainerOrJars,
List<URL> otherJarsOrFolder,
ClassLoader parentClassLoader) |
protected static void |
processFilesInResourcesFolder(File jettyHome,
Map<String,File> childrenFiles)
When we find files typically used for central logging configuration we do
what it takes in this method to do what the user expects.
|
public static final Set<LibExtClassLoaderHelper.IFilesInJettyHomeResourcesProcessor> registeredFilesInJettyHomeResourcesProcessors
public static ClassLoader createLibEtcClassLoader(File jettyHome, ClassLoader parentClassLoader) throws MalformedURLException
server
- MalformedURLException
public static ClassLoader createLibExtClassLoader(List<File> jarsContainerOrJars, List<URL> otherJarsOrFolder, ClassLoader parentClassLoader) throws MalformedURLException
server
- MalformedURLException
protected static void processFilesInResourcesFolder(File jettyHome, Map<String,File> childrenFiles)
We can afford to do some implementation specific code for a logging
framework only in a fragment.
Trying to configure log4j and logback in here.
We recommend that slf4j jars are all placed in the osgi framework. And a single implementation if possible packaged as an osgi bundle is there.
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.