Class ELSandbox.StandardELSandbox
java.lang.Object
io.micronaut.el.ELSandbox.StandardELSandbox
- All Implemented Interfaces:
ELSandbox
- Enclosing interface:
ELSandbox
The default deny list.
Types are denied together with their subtypes, and by package: a subclass of a denied type is denied,
so a custom class loader does not slip through the check on ClassLoader.
- Since:
- 1.1
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface ELSandbox
ELSandbox.StandardELSandbox -
Field Summary
Fields inherited from interface ELSandbox
UNRESTRICTED -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowsType(Class<?> type) Whether reflection may reach the members of a type, which is asked of the base object of every reflective access and of the value every reflective access produces.toString()
-
Method Details
-
allowsType
Description copied from interface:ELSandboxWhether reflection may reach the members of a type, which is asked of the base object of every reflective access and of the value every reflective access produces.No member is denied by its name: every member that leads from an allowed object to a denied one, such as
getClassorgetClassLoader, produces a value of a denied type, and is stopped by that.- Specified by:
allowsTypein interfaceELSandbox- Parameters:
type- The type the expression reached- Returns:
- Whether the expression may use it
-
toString
-