com.taggercat.template
Class ActionBeanReader
java.lang.Object
com.taggercat.template.ActionBeanReader
public class ActionBeanReader
- extends java.lang.Object
This class is used to read the class names, and corresponding method names we consider to be action
bean classes and methods.
Action beans are specified in the actionbeans.properties file, and that property file should be in the
application's jar file; and not as a separate file in the class path. In other words, we identify the
application's domain model jar file by the existence of the actionbeans.properties resource.
-
|
Method Summary |
static java.util.Set<java.lang.String> |
getActionBeanMehods(java.lang.String beanName)
Returns the Set of method names on the specified action bean. |
static java.util.Set<java.lang.String> |
getActionBeanNames()
Returns the Set of action bean names. |
static java.util.Map<java.lang.String,com.taggercat.template.ActionBeanReader.ActionBean> |
getActionBeansInJar(java.lang.ClassLoader classLoader,
java.lang.String jarFilePath,
java.lang.String defaultActionBeanPackage,
java.util.Map<java.lang.String,java.lang.String> specifiedActionBeanClasses)
Returns a Map of the classes, and corresponding method lists on classes we consider to
be action beans |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionBeanReader
public ActionBeanReader()
getActionBeanNames
public static java.util.Set<java.lang.String> getActionBeanNames()
- Returns the Set of action bean names.
- Returns:
- the action bean names
getActionBeanMehods
public static java.util.Set<java.lang.String> getActionBeanMehods(java.lang.String beanName)
- Returns the Set of method names on the specified action bean.
- Returns:
- the action bean method names
getActionBeansInJar
public static java.util.Map<java.lang.String,com.taggercat.template.ActionBeanReader.ActionBean> getActionBeansInJar(java.lang.ClassLoader classLoader,
java.lang.String jarFilePath,
java.lang.String defaultActionBeanPackage,
java.util.Map<java.lang.String,java.lang.String> specifiedActionBeanClasses)
throws java.io.IOException
- Returns a Map of the classes, and corresponding method lists on classes we consider to
be action beans
- Throws:
java.io.IOException- Parameters:
classLoader - the class loader where we found the properties filejarFilePath - the file path to the jardefaultActionBeanPackage - the name of he default action bean packagespecifiedActionBeanClasses - any specifically named action beans
- Returns:
- the map of the action beans to their names
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception- Parameters:
args -