Class ExportedGetters

java.lang.Object
org.zkoss.zkmax.xel.util.ExportedGetters

public final class ExportedGetters extends Object
Finds the getter of a bean property that can be invoked on an object whose class is in a package its module does not export, such as sun.util.calendar.ZoneInfo: the same getter as declared by a public supertype in an exported package, such as TimeZone.

Available in ZK EE

It is used to implement an ExpressionFactory on top of an evaluator that invokes the getter of the object's own class. The users of XEL expressions rarely need to use this class.

Since:
11.0.0
  • Method Details

    • getReadMethod

      public static Method getReadMethod(Class<?> cls, String property)
      Returns the getter of the given property that is declared by a public supertype in an exported package, or null if the class itself is in an exported package (so its own getter is accessible) or no such supertype declares the getter.
      Parameters:
      cls - the class of the object to read the property from
      property - the property name