Interface BeanTableSchemaParams.Builder<T>

  • Method Details

    • beanClass

      BeanTableSchemaParams.Builder<T> beanClass(Class<T> beanClass)
      Set the class of the item.
      Returns:
      This builder for method chaining.
    • lookup

      Set the MethodHandles.Lookup that will be used for reflection and unreflection purposes on the provided item class, including security and access checking. A lookup object is created by calling MethodHandles.lookup(). Note that this method is caller-sensitive, which means that the return value of lookup() relies on the class that invoked it. When providing a custom lookup object, you should ensure that the lookup is created from a class that belongs to your application to ensure it has the correct access to the item.

      In practical terms, calling MethodHandles.lookup() when creating this ReflectiveSchemaParams is normally sufficient:

           BeanTableSchemaParams.builder(MyBean.class)
                                 .lookup(MethodHandles.lookup())
                                 .build();
      
      Returns:
      This builder for method chaining.