Class ELSandbox.StandardELSandbox

java.lang.Object
io.micronaut.el.ELSandbox.StandardELSandbox
All Implemented Interfaces:
ELSandbox
Enclosing interface:
ELSandbox

public static final class ELSandbox.StandardELSandbox extends Object implements 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
  • Method Details

    • allowsType

      public boolean allowsType(Class<?> type)
      Description copied from interface: ELSandbox
      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.

      No member is denied by its name: every member that leads from an allowed object to a denied one, such as getClass or getClassLoader, produces a value of a denied type, and is stopped by that.

      Specified by:
      allowsType in interface ELSandbox
      Parameters:
      type - The type the expression reached
      Returns:
      Whether the expression may use it
    • toString

      public String toString()
      Overrides:
      toString in class Object