package io.ebeaninternal.dbmigration.model.visitor;

import io.ebeaninternal.dbmigration.model.build.ModelBuildPropertyVisitor;
import io.ebeaninternal.server.deploy.BeanDescriptor;

Visitor pattern for visiting a BeanDescriptor and potentially all its bean properties.
/** * Visitor pattern for visiting a BeanDescriptor and potentially all its bean * properties. */
public interface BeanVisitor {
Visit a BeanDescriptor and return a PropertyVisitor to use to visit each property on the entity bean (return null to skip visiting this bean).
/** * Visit a BeanDescriptor and return a PropertyVisitor to use to visit each * property on the entity bean (return null to skip visiting this bean). */
ModelBuildPropertyVisitor visitBean(BeanDescriptor<?> descriptor); }