Class DirectBeanBuilder<T extends Bean>

  • Type Parameters:
    T - the bean type
    All Implemented Interfaces:

    public class DirectBeanBuilder<T extends Bean>
    extends BasicBeanBuilder<T>
    A builder implementation designed for use by the code generator.

    This implementation adds validation on top of basic builder functionality.

    • Constructor Detail

      • DirectBeanBuilder

        public DirectBeanBuilder​(T bean)
        Constructs the builder wrapping the target bean.
        bean - the target bean, not null
    • Method Detail

      • validate

        protected void validate​(T bean)
        Description copied from class: BasicBeanBuilder
        Hook to allow a subclass to validate the bean.
        validate in class BasicBeanBuilder<T extends Bean>
        bean - the bean to validate, not null