public class AutomagicPetiteConfigurator extends jodd.io.findfile.ClassFinder implements PetiteConfigurator
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.
| Modifier and Type | Field and Description |
|---|---|
protected PetiteContainer |
container |
protected long |
elapsed |
protected byte[] |
petiteBeanAnnotationBytes |
| Constructor and Description |
|---|
AutomagicPetiteConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(PetiteContainer petiteContainer)
Configures
PetiteContainer with default class path. |
void |
configure(PetiteContainer petiteContainer,
java.io.File[] classpath)
Configures
PetiteContainer with specified class path. |
long |
getElapsed()
Return elapsed number of milliseconds for configuration.
|
protected void |
onEntry(jodd.io.findfile.ClassFinder.EntryData entryData)
Scans all classes and registers only those annotated with
PetiteBean. |
acceptEntry, acceptJar, createEntriesRules, createJarRules, getSystemJars, getTypeSignatureBytes, isIgnoreException, isIncludeResources, isTypeSignatureInUse, loadClass, prepareEntryName, scanClassFile, scanClassPath, scanEntry, scanJarFile, scanPath, scanPath, scanPaths, scanPaths, scanUrl, scanUrls, setExcludeAllEntries, setExcludeAllJars, setExcludedEntries, setExcludedJars, setIgnoreException, setIncludeAllEntries, setIncludeAllJars, setIncludedEntries, setIncludedJars, setIncludeResourcesprotected final byte[] petiteBeanAnnotationBytes
protected PetiteContainer container
protected long elapsed
public long getElapsed()
public void configure(PetiteContainer petiteContainer, java.io.File[] classpath)
PetiteContainer with specified class path.public void configure(PetiteContainer petiteContainer)
PetiteContainer with default class path.configure in interface PetiteConfiguratorconfigure(jodd.petite.PetiteContainer, java.io.File[])protected void onEntry(jodd.io.findfile.ClassFinder.EntryData entryData)
PetiteBean.
Because of performance purposes, classes are not dynamically loaded; instead, their
file content is examined.onEntry in class jodd.io.findfile.ClassFinderCopyright © 2003-2013 Jodd Team