|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.io.findfile.FindClass
jodd.madvoc.config.AutomagicMadvocConfigurator
public class AutomagicMadvocConfigurator
Default Madvoc configurator uses auto-magic to configure 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jodd.io.findfile.FindClass |
|---|
jodd.io.findfile.FindClass.EntryData |
| Field Summary | |
|---|---|
protected java.lang.String |
actionClassSuffix
|
protected ActionsManager |
actionsManager
|
protected long |
elapsed
|
protected java.lang.String |
resultClassSuffix
|
protected ResultsManager |
resultsManager
|
| Fields inherited from class jodd.io.findfile.FindClass |
|---|
excludedEntries, excludedJars, ignoreException, includedEntries, includedJars, includeResources, systemJars, usePathWildcards |
| Constructor Summary | |
|---|---|
AutomagicMadvocConfigurator()
|
|
| Method Summary | |
|---|---|
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.net.URL[] 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.FindClass.EntryData entryData)
Parses class name that matches madvoc-related names. |
protected void |
onResultClass(java.lang.String className)
Loads madvoc result from founded ActionResult instance. |
| Methods inherited from class jodd.io.findfile.FindClass |
|---|
acceptEntry, acceptJar, getExcludedEntries, getExcludedJars, getIncludedEntries, getIncludedJars, getSystemJars, getTypeSignatureBytes, isIgnoreException, isIncludeResources, isTypeSignatureInUse, isUsePathWildcards, prepareEntryName, scanClassFile, scanClassPath, scanEntry, scanJarFile, scanPath, scanPath, scanPaths, scanPaths, scanUrl, scanUrls, setExcludedEntries, setExcludedJars, setIgnoreException, setIncludedEntries, setIncludedJars, setIncludeResources, setSystemJars, setUsePathWildcards |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@PetiteInject protected ActionsManager actionsManager
@PetiteInject protected ResultsManager resultsManager
protected java.lang.String actionClassSuffix
protected java.lang.String resultClassSuffix
protected long elapsed
| Constructor Detail |
|---|
public AutomagicMadvocConfigurator()
| Method Detail |
|---|
public void configure()
configure in interface MadvocConfiguratorconfigure(java.net.URL[])public void configure(java.net.URL[] classpath)
configure()protected void onEntry(jodd.io.findfile.FindClass.EntryData entryData)
onEntry in class jodd.io.findfile.FindClasspublic boolean checkClass(java.lang.Class clazz)
protected void onActionClass(java.lang.String className)
throws java.lang.ClassNotFoundException
MadvocAction annotation
or extends a class annotated with the same annotation.
java.lang.ClassNotFoundException
protected void onResultClass(java.lang.String className)
throws java.lang.ClassNotFoundException
ActionResult instance.
java.lang.ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||