FileDocCategorySizeDatePackage
SFSBFileCacheLoader.javaAPI DocJBoss 4.2.12252Fri Jul 13 20:53:48 BST 2007org.jboss.ejb3.cache.tree

SFSBFileCacheLoader

public class SFSBFileCacheLoader extends org.jboss.cache.loader.FileCacheLoader

Fields Summary
Log
log
Constructors Summary
Methods Summary
protected booleanisCharacterPortableTree(org.jboss.cache.Fqn fqn)

   
      
   
      /* For fqn, check '*' '<' '>' '|' '"' '?' and also '\' '/' and ':' */
      Pattern fqnPattern = Pattern.compile("[\\\\\\/:*<>|\"?]");

      List elements = fqn.peekElements();
      for (Object anElement : elements)
      {
         Matcher matcher = fqnPattern.matcher(anElement.toString());
         if (matcher.find())
         {
            log.warn("One of the Fqn ( " + fqn + " ) elements contains one of these characters: '*' '<' '>' '|' '\"' '?' '\\' '/' ':' ");
            log.warn("Directories containing these characters are illegal in some operative systems and could lead to portability issues");
            return false;
         }
      }

      return true;