noope.input
Class HardCodedLawPropertyRecordLoader

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

public class HardCodedLawPropertyRecordLoader
extends LawPropertyRecordLoader

This is an implementation of the LawPropertyRecordLoader that has all the classes it can load hard-coded in, so it just switches on the className it is given. This is a workaround for Netscape's paranoid SecurityManager! If you want something for use in applications, use DynamicLawPropertyRecordLoader.

Version:
29-Apr-2001
Author:
Miklos Reiter

Constructor Summary
HardCodedLawPropertyRecordLoader()
          This constructor does nothing.
 
Method Summary
 LawPropertyRecord createLawPropertyRecord(java.lang.String className, BlockReaderLocation brL, BlockReader br, Entity ent)
          Creates a new instance of the given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HardCodedLawPropertyRecordLoader

public HardCodedLawPropertyRecordLoader()
This constructor does nothing.
Method Detail

createLawPropertyRecord

public LawPropertyRecord createLawPropertyRecord(java.lang.String className,
                                                 BlockReaderLocation brL,
                                                 BlockReader br,
                                                 Entity ent)
                                          throws BRLoadingException
Creates a new instance of the given class. This version only supports the subclasses of OutputProjectionPropertyRecord, as of 29-Apr-2001. If subclassed, override this method and in the modified version, first check for new classes added and then call the inherited method.
Overrides:
createLawPropertyRecord in class LawPropertyRecordLoader