/** * Returns a File object corresponding to the directory specified in * the system property hapi.home. The property is only checked the * first time this method is called, so changes will not take place * until a new VM is started. * This method is guaranteed to return a directory. If hapi.home is * not set, or is set to a non-directory path, the current working directory will * be used. */ public static File getHomeDirectory() { if (home == null) setHomeDirectory(); return home; }
public static void main(String args[]) { System.out.println("HOME: " + getHomeDirectory().getAbsolutePath()); }
public static void main(String args[]) { System.out.println("HOME: " + getHomeDirectory().getAbsolutePath()); }
/** * Creates a new instance of FileCodeMapper. You should probably not * construct a FileCodeMapper directly. Use CodeMapper.getInstance() * instead ... this will ensure that only a single instance is created, * which is important for performance because code maps are loaded from * disk every time this constructor is called. */ public FileCodeMapper() throws HL7Exception { baseDir = new File(Home.getHomeDirectory().getAbsolutePath() + "/codemap"); refreshCache(); }
/** * Returns a File object corresponding to the directory specified in * the system property hapi.home. The property is only checked the * first time this method is called, so changes will not take place * until a new VM is started. * This method is guaranteed to return a directory. If hapi.home is * not set, or is set to a non-directory path, the current working directory will * be used. */ public static File getHomeDirectory() { if (home == null) setHomeDirectory(); return home; }
/** * Creates a new instance of FileCodeMapper. You should probably not * construct a FileCodeMapper directly. Use CodeMapper.getInstance() * instead ... this will ensure that only a single instance is created, * which is important for performance because code maps are loaded from * disk every time this constructor is called. */ public FileCodeMapper() throws HL7Exception { baseDir = new File(Home.getHomeDirectory().getAbsolutePath() + "/codemap"); refreshCache(); }