Package org.nuxeo.osgi.application
Interface ClassPathScanner.Callback
-
- All Known Implementing Classes:
ClassPath
- Enclosing class:
- ClassPathScanner
public static interface ClassPathScanner.Callback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description File
handleBundle(BundleFile bf)
A Bundle was found on the class path.File
handleJar(BundleFile bf)
A JAR was found on the class path.void
handleNestedJar(BundleFile bf)
A nested JAR was found on the class path.
-
-
-
Method Detail
-
handleNestedJar
void handleNestedJar(BundleFile bf)
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
- Parameters:
bf
- the JAR found
-
handleJar
File handleJar(BundleFile bf)
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.
- Parameters:
bf
- the JAR found- Returns:
- the folder to be used to extract JARs or null to skip extraction
-
handleBundle
File handleBundle(BundleFile bf)
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.
- Parameters:
bf
- the JAR found- Returns:
- the folder to be used to extract JARs or null to skip extraction
-
-