@ConsumerType
public interface FrameworkUtilHelper
FrameworkUtil class.
This helper provides alternative implementations for methods on
FrameworkUtil.
| Modifier and Type | Method and Description |
|---|---|
default java.util.Optional<Bundle> |
getBundle(java.lang.Class<?> classFromBundle)
Returns the
Bundle associated with the specified class. |
default java.util.Optional<Bundle> getBundle(java.lang.Class<?> classFromBundle)
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.
classFromBundle - A class associated with a bundle.Optional containing the Bundle for the
specified class, or an empty Optional if the specified
class is not from a bundle.Copyright © OSGi Alliance (2000, 2020). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0