noope.input
Class DynamicLawPropertyRecordLoader

java.lang.Object
  |
  +--noope.input.LawPropertyRecordLoader
        |
        +--noope.input.DynamicLawPropertyRecordLoader

public class DynamicLawPropertyRecordLoader
extends LawPropertyRecordLoader

This is a LawPropertyRecordLoader that dynamically loads the class with the given name. This is what is used by noope by default.

Version:
29-Apr-2001
Author:
Miklos Reiter

Field Summary
protected  java.lang.String defaultPackage
          The default package to load classes from if they cannot be found with the exact name.
 
Constructor Summary
DynamicLawPropertyRecordLoader(java.lang.String aDefaultPackage)
          Constructs a new DynamicLawPropertyRecordLoader object.
 
Method Summary
 LawPropertyRecord createLawPropertyRecord(java.lang.String className, BlockReaderLocation brL, BlockReader br, Entity ent)
          This method dynamically loads the class with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultPackage

protected java.lang.String defaultPackage
The default package to load classes from if they cannot be found with the exact name.
Constructor Detail

DynamicLawPropertyRecordLoader

public DynamicLawPropertyRecordLoader(java.lang.String aDefaultPackage)
Constructs a new DynamicLawPropertyRecordLoader object.
Method Detail

createLawPropertyRecord

public LawPropertyRecord createLawPropertyRecord(java.lang.String className,
                                                 BlockReaderLocation brL,
                                                 BlockReader br,
                                                 Entity ent)
                                          throws BRLoadingException
This method dynamically loads the class with the given name. The arguments, except for className and brL are passed on to the constructor, so the class has to have a constructor of this form.
Overrides:
createLawPropertyRecord in class LawPropertyRecordLoader