Package org.eclipse.jetty.util
Interface ClassVisibilityChecker
- All Known Subinterfaces:
WebAppClassLoader.Context
- All Known Implementing Classes:
CachingWebAppClassLoader
,OSGiWebappClassLoader
,WebAppClassLoader
,WebAppContext
public interface ClassVisibilityChecker
Interface to be implemented by classes capable of checking class visibility
for a context.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isHiddenClass
(Class<?> clazz) Is the class a Hidden (Server) Class.boolean
isProtectedClass
(Class<?> clazz) Is the class a Protected (System) Class.default boolean
isServerClass
(Class<?> clazz) Deprecated, for removal: This API element is subject to removal in a future version.default boolean
isSystemClass
(Class<?> clazz) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
isProtectedClass
Is the class a Protected (System) Class. A System class is a class that is visible to a web application, but that cannot be overridden by the contents of WEB-INF/lib or WEB-INF/classes- Parameters:
clazz
- The fully qualified name of the class.- Returns:
- True if the class is a system class.
-
isHiddenClass
Is the class a Hidden (Server) Class. A Server class is a class that is part of the implementation of the server and is NOT visible to a web application. The web application may provide its own implementation of the class, to be loaded from WEB-INF/lib or WEB-INF/classes- Parameters:
clazz
- The fully qualified name of the class.- Returns:
- True if the class is a server class.
-
isSystemClass
Deprecated, for removal: This API element is subject to removal in a future version.Is the class a System Class. A System class is a class that is visible to a web application, but that cannot be overridden by the contents of WEB-INF/lib or WEB-INF/classes- Parameters:
clazz
- The fully qualified name of the class.- Returns:
- True if the class is a system class.
-
isServerClass
Deprecated, for removal: This API element is subject to removal in a future version.Is the class a Server Class. A Server class is a class that is part of the implementation of the server and is NOT visible to a web application. The web application may provide its own implementation of the class, to be loaded from WEB-INF/lib or WEB-INF/classes- Parameters:
clazz
- The fully qualified name of the class.- Returns:
- True if the class is a server class.
-
isHiddenClass(Class)