5 Replies Latest reply on May 20, 2005 12:07 AM by Jimmy Wilson

    FileCacheLoader create() Method Implementation

    Jimmy Wilson Apprentice

      From FileCacheLoader.java:

      public void create() throws Exception {
       throw new FileNotFoundException(root.toString());

      Is there a reason that the FileCacheLoader implementation of create throws an exception if the "root" cache loader location is not found rather than just create it? Checking File.canRead() and File.canWrite() might make sense as a sanity check here as well.

      If such a reason exists, would an additional configuration property named createLocation that controlled creation of the "root" cache loader location make sense? I would be happy to provide a patch via JIRA that provides this behavior.