public class AutomagicDbOomConfigurator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static byte[] |
DB_TABLE_ANNOTATION_BYTES |
protected DbEntityManager |
dbEntityManager |
protected boolean |
registerAsEntities |
Constructor and Description |
---|
AutomagicDbOomConfigurator(DbEntityManager dbEntityManager,
boolean registerAsEntities) |
Modifier and Type | Method and Description |
---|---|
void |
configure()
Configures
DbEntityManager with specified class path. |
void |
registerAsConsumer(ClassScanner classScanner)
Registers a class consumer that registers only those annotated with
DbTable . |
AutomagicDbOomConfigurator |
withScanner(java.util.function.Consumer<ClassScanner> scannerConsumer) |
protected static final byte[] DB_TABLE_ANNOTATION_BYTES
protected final boolean registerAsEntities
protected final DbEntityManager dbEntityManager
public AutomagicDbOomConfigurator(DbEntityManager dbEntityManager, boolean registerAsEntities)
public AutomagicDbOomConfigurator withScanner(java.util.function.Consumer<ClassScanner> scannerConsumer)
public void configure()
DbEntityManager
with specified class path.public void registerAsConsumer(ClassScanner classScanner)
DbTable
.
Because of performance purposes, classes are not dynamically loaded; instead, their
file content is examined.Copyright © 2003-present Jodd Team