com.taggercat.template
Class ActionBeanReader

java.lang.Object
  extended by 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.

 

Constructor Summary
ActionBeanReader()
           
 
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
 

Constructor Detail

ActionBeanReader

public ActionBeanReader()
Method Detail

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 file
jarFilePath - the file path to the jar
defaultActionBeanPackage - the name of he default action bean package
specifiedActionBeanClasses - 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 -