public class AutomagicPetiteConfigurator
extends java.lang.Object
Scans all classes on classpath and in jar files, and scans for PetiteBean
annotation (not by loading the class!). If annotation is founded, class will be loaded and
registered as Petite bean.
Constructor and Description |
---|
AutomagicPetiteConfigurator(PetiteContainer petiteContainer) |
Modifier and Type | Method and Description |
---|---|
void |
configure()
Configures
PetiteContainer with specified class path. |
void |
registerAsConsumer(ClassScanner classScanner)
Registers a class consumer that registers only those annotated with
PetiteBean . |
AutomagicPetiteConfigurator |
withScanner(java.util.function.Consumer<ClassScanner> scannerConsumer) |
public AutomagicPetiteConfigurator(PetiteContainer petiteContainer)
public AutomagicPetiteConfigurator withScanner(java.util.function.Consumer<ClassScanner> scannerConsumer)
public void configure()
PetiteContainer
with specified class path.public void registerAsConsumer(ClassScanner classScanner)
PetiteBean
.
Because of performance purposes, classes are not dynamically loaded; instead, their
file content is examined.Copyright © 2003-present Jodd Team