Class BundleFileWrapperChain
java.lang.Object
org.eclipse.osgi.storage.bundlefile.BundleFile
org.eclipse.osgi.storage.bundlefile.BundleFileWrapper
org.eclipse.osgi.storage.bundlefile.BundleFileWrapperChain
Used to chain the BundleFile objects returned from
BundleFileWrapperFactoryHook
. This class is useful for traversing the
chain of wrapped bundle files.-
Field Summary
Fields inherited from class org.eclipse.osgi.storage.bundlefile.BundleFile
basefile
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNext()
The next WrapperBundleFile in the chain.The BundleFile that is wrapped<T> T
getWrappedType
(Class<T> type) Returns the first bundle file wrapped in this chain which also is an instance of the specified type.toString()
Methods inherited from class org.eclipse.osgi.storage.bundlefile.BundleFileWrapper
close, containsDir, createResourceURL, getBundleFile, getEntry, getEntryPaths, getEntryPaths, getFile, open
Methods inherited from class org.eclipse.osgi.storage.bundlefile.BundleFile
createURL, fixTrailingSlash, getBaseFile, getResourceURL
-
Constructor Details
-
BundleFileWrapperChain
-
-
Method Details
-
toString
- Overrides:
toString
in classBundleFile
-
getWrapped
The BundleFile that is wrapped- Returns:
- the BunldeFile that is wrapped
-
getNext
The next WrapperBundleFile in the chain. Anull
value is returned if this is the end of the chain.- Returns:
- the next WrapperBundleFile
-
getWrappedType
Returns the first bundle file wrapped in this chain which also is an instance of the specified type.- Type Parameters:
T
- The type being searched for- Parameters:
type
- the class of the type being searched for- Returns:
- the found bundle file that is an instance of the specified type
-