Interface FrameworkUtilHelper

    • Method Detail

      • getBundle

        default java.util.Optional<Bundle> getBundle​(java.lang.Class<?> classFromBundle)
        Returns the Bundle associated with the specified class.

        This helper method is called by FrameworkUtil.getBundle(Class) if the standard implementation of FrameworkUtil is unable to find the bundle.

        Parameters:
        classFromBundle - A class associated with a bundle.
        Returns:
        An Optional containing the Bundle for the specified class, or an empty Optional if the specified class is not from a bundle.