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 BundleFile
basefile -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNext()The next WrapperBundleFile in the chain.The BundleFile that is wrapped<T> TgetWrappedType(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 BundleFileWrapper
close, containsDir, createResourceURL, getBundleFile, getEntry, getEntryPaths, getEntryPaths, getFile, openMethods inherited from class BundleFile
createURL, fixTrailingSlash, getBaseFile, getResourceURL
-
Constructor Details
-
BundleFileWrapperChain
-
-
Method Details
-
toString
- Overrides:
toStringin classBundleFile
-
getWrapped
The BundleFile that is wrapped- Returns:
- the BunldeFile that is wrapped
-
getNext
The next WrapperBundleFile in the chain. Anullvalue 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
-