@ConsumerType
public interface FrameworkUtilHelper
FrameworkUtil
class.
This helper provides alternative implementations for methods on
FrameworkUtil
.
Modifier and Type | Method and Description |
---|---|
default Optional<Bundle> |
getBundle(Class<?> classFromBundle)
Returns the
Bundle associated with the specified class. |
default Optional<Bundle> getBundle(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 © 2006–2022 The Apache Software Foundation. All rights reserved.