Interface FrameworkUtilHelper


  • @ConsumerType
    public interface FrameworkUtilHelper
    A helper for the FrameworkUtil class.

    This helper provides alternative implementations for methods on FrameworkUtil.

    • 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.