public class AutomagicMadvocConfigurator extends jodd.io.findfile.ClassFinder implements MadvocConfigurator
WebApplication.
It searches the class path for all classes which names ends with 'Action' and 'Result'
suffixes. Each such class will be loaded and introspected to determine
if it represents valid Madvoc entity and then registered into the web application.
Action class is scanned for the MadvocAction. All public methods with Action
are registered as Madvoc actions.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
actionClassSuffix |
protected ActionsManager |
actionsManager |
protected long |
elapsed |
protected MadvocConfig |
madvocConfig |
protected java.lang.String |
resultClassSuffix |
protected ResultsManager |
resultsManager |
| Constructor and Description |
|---|
AutomagicMadvocConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkClass(java.lang.Class clazz)
Determines if class should be examined for Madvoc annotations.
|
void |
configure()
Configures web application from system classpath
|
void |
configure(java.io.File[] classpath)
Configures web application from specified classpath.
|
protected void |
onActionClass(java.lang.String className)
Builds action configuration on founded action class.
|
protected void |
onEntry(jodd.io.findfile.ClassFinder.EntryData entryData)
Parses class name that matches madvoc-related names.
|
protected void |
onResultClass(java.lang.String className)
Loads madvoc result from founded
ActionResult instance. |
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, setIncludeResources@PetiteInject protected MadvocConfig madvocConfig
@PetiteInject protected ActionsManager actionsManager
@PetiteInject protected ResultsManager resultsManager
protected java.lang.String actionClassSuffix
protected java.lang.String resultClassSuffix
protected long elapsed
public void configure()
configure in interface MadvocConfiguratorconfigure(java.io.File[])public void configure(java.io.File[] classpath)
configure()protected void onEntry(jodd.io.findfile.ClassFinder.EntryData entryData)
onEntry in class jodd.io.findfile.ClassFinderpublic boolean checkClass(java.lang.Class clazz)
NoClassDefFoundError;
we should continue searching anyway.protected void onActionClass(java.lang.String className)
throws java.lang.ClassNotFoundException
MadvocAction annotation.java.lang.ClassNotFoundExceptionprotected void onResultClass(java.lang.String className)
throws java.lang.ClassNotFoundException
ActionResult instance.java.lang.ClassNotFoundExceptionCopyright © 2003-2013 Jodd Team