Package org.osgi.framework.connect
Interface FrameworkUtilHelper
@ConsumerType
public interface FrameworkUtilHelper
A helper for the
FrameworkUtil
class.
This helper provides alternative implementations for methods on
FrameworkUtil
.
-
Method Summary
-
Method Details
-
getBundle
Returns theBundle
associated with the specified class.This helper method is called by
FrameworkUtil.getBundle(Class)
if the standard implementation ofFrameworkUtil
is unable to find the bundle.- Parameters:
classFromBundle
- A class associated with a bundle.- Returns:
- An
Optional
containing theBundle
for the specified class, or an emptyOptional
if the specified class is not from a bundle.
-