Package org.nuxeo.osgi.application
Class ClassPath
java.lang.Object
org.nuxeo.osgi.application.ClassPath
- All Implemented Interfaces:
ClassPathScanner.Callback
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<BundleFile>
protected final List<BundleFile>
protected final SharedClassLoader
protected final List<BundleFile>
protected final File
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetJars()
A Bundle was found on the class path.handleJar
(BundleFile bf) A JAR was found on the class path.void
A nested JAR was found on the class path.void
void
void
-
Field Details
-
bundles
-
jars
-
nestedJars
-
loader
-
nestedJARsDir
-
-
Constructor Details
-
Method Details
-
getBundles
-
getJars
-
getNestedJars
-
scan
-
handleBundle
Description copied from interface:ClassPathScanner.Callback
A Bundle was found on the class path. Usually a callback should handle this by adding the Bundle to a class loader and installing it in an OSGi frameworkThe callback should return a directory to be used to extract nested JARs from this JAR.
The callback may return null to skip nested JAR extraction.
- Specified by:
handleBundle
in interfaceClassPathScanner.Callback
- Parameters:
bf
- the JAR found- Returns:
- the folder to be used to extract JARs or null to skip extraction
-
handleJar
Description copied from interface:ClassPathScanner.Callback
A JAR was found on the class path. Usually a callback should handle this by adding the JAR to a class loader.The callback should return a directory to be used to extract nested JARs from this JAR.
The callback may return null to skip nested JAR extraction.
- Specified by:
handleJar
in interfaceClassPathScanner.Callback
- Parameters:
bf
- the JAR found- Returns:
- the folder to be used to extract JARs or null to skip extraction
-
handleNestedJar
Description copied from interface:ClassPathScanner.Callback
A nested JAR was found on the class path. Usually a callback should handle this by adding the JAR to a class loaderThe callback should return a directory to be used to extract nested JARs from this JAR.
The callback may return null to skip nested JAR extraction
- Specified by:
handleNestedJar
in interfaceClassPathScanner.Callback
- Parameters:
bf
- the JAR found
-
store
- Throws:
IOException
-
restore
- Throws:
IOException
-