org.opensha.commons.metadata
Class MetadataLoader

java.lang.Object
  extended by org.opensha.commons.metadata.MetadataLoader
All Implemented Interfaces:
EventListener, ParameterChangeWarningListener

public class MetadataLoader
extends Object
implements ParameterChangeWarningListener


Constructor Summary
MetadataLoader()
           
 
Method Summary
static Object createClassInstance(String className)
          Creates a class instance from a string of the full class name including packages.
static Object createClassInstance(String className, ArrayList<Object> args)
          Creates a class instance from a string of the full class name including packages.
static Object createClassInstance(String className, ArrayList<Object> args, ArrayList<String> argNames)
          Creates a class instance from a string of the full class name including packages.
static void main(String[] args)
           
 void parameterChangeWarning(ParameterChangeWarningEvent event)
          Function that must be implemented by all Listeners for ParameterChangeWarnEvents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataLoader

public MetadataLoader()
Method Detail

createClassInstance

public static Object createClassInstance(String className)
                                  throws InvocationTargetException
Creates a class instance from a string of the full class name including packages. This is how you dynamically make objects at runtime if you don't know which\ class beforehand.

Throws:
InvocationTargetException

createClassInstance

public static Object createClassInstance(String className,
                                         ArrayList<Object> args)
                                  throws InvocationTargetException
Creates a class instance from a string of the full class name including packages. This is how you dynamically make objects at runtime if you don't know which\ class beforehand.

Throws:
InvocationTargetException

createClassInstance

public static Object createClassInstance(String className,
                                         ArrayList<Object> args,
                                         ArrayList<String> argNames)
                                  throws InvocationTargetException
Creates a class instance from a string of the full class name including packages. This is how you dynamically make objects at runtime if you don't know which\ class beforehand.

Throws:
InvocationTargetException

main

public static void main(String[] args)

parameterChangeWarning

public void parameterChangeWarning(ParameterChangeWarningEvent event)
Description copied from interface: ParameterChangeWarningListener
Function that must be implemented by all Listeners for ParameterChangeWarnEvents.

Specified by:
parameterChangeWarning in interface ParameterChangeWarningListener
Parameters:
event - The Event which triggered this function call