Class BundleFileWrapperChain

public class BundleFileWrapperChain extends BundleFileWrapper
Used to chain the BundleFile objects returned from BundleFileWrapperFactoryHook. This class is useful for traversing the chain of wrapped bundle files.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      toString in class BundleFile
    • getWrapped

      public BundleFile getWrapped()
      The BundleFile that is wrapped
      the BunldeFile that is wrapped
    • getNext

      public BundleFileWrapperChain getNext()
      The next WrapperBundleFile in the chain. A null value is returned if this is the end of the chain.
      the next WrapperBundleFile
    • getWrappedType

      public <T> T getWrappedType(Class<T> type)
      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
      type - the class of the type being searched for
      the found bundle file that is an instance of the specified type