com.taggercat.controller
Class ActionNameReader
java.lang.Object
com.taggercat.controller.ActionNameReader
public class ActionNameReader
- extends java.lang.Object
This class is used to read the the action names assigned to request handlers
that are specified using annotations.
In addition to action names, this class also sets the the associations for
handlers using Query String Regular expressions, and URI regular expressions.
The requirement is that the jar file containing the application's request
handlers must be named with the application's controller servlet name.
AND / OR
Any jars in the classpath that includes a manifest Extension-Name attribute that contains the phrase: tcActions=true
Example:
Extension-Name: System Requirements Web Application tcActions=true
We also scan the classes folder for stand alone action handlers.
-
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionNameReader
public ActionNameReader()
addRequestHandlersFromApplicationJar
public static void addRequestHandlersFromApplicationJar(java.util.Map<java.lang.String,NamedActionActionMapping> controller,
java.util.List<QueryStringActionMapping> queryStringRegExMappings,
java.util.List<URIActionMapping> uriRegExMappings,
java.util.List<URIPatternActionMapping> uriPatternMappings,
java.util.List<ELActionMapping> elMappings,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> actionPermissions,
javax.servlet.ServletContext servletContext,
java.lang.String servletName)
throws java.io.IOException
- Adds request action names and action class names to the controller's map
- Throws:
java.io.IOException