Package com.helger.commons.lang
Interface IHasClassLoader
- All Known Implementing Classes:
ClassPathResource
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Base interface for all objects having optional support for custom
Note: when you implement this interface and want to have a
ClassLoader objects.Note: when you implement this interface and want to have a
ClassLoader as a member, please consider storing it as a
WeakReference to avoid potential memory leaks.- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanCheck if this object has a custom class loader or not.
-
Method Details
-
getClassLoader
- Returns:
- The class loader to use. May be
null.
-
hasClassLoader
default boolean hasClassLoader()Check if this object has a custom class loader or not.- Returns:
trueif a class loader is present,falseif not.- Since:
- 9.0.0
- See Also:
-