[jboss-cvs] JBossCache/src/org/jboss/cache/factories ...

Brian Stansberry brian.stansberry at jboss.com
Wed May 23 00:28:33 EDT 2007


  User: bstansberry
  Date: 07/05/23 00:28:33

  Modified:    src/org/jboss/cache/factories  XmlConfigurationParser.java
  Log:
  Explain why we barf on EvictionPolicyClass
  
  Revision  Changes    Path
  1.19      +7 -0      JBossCache/src/org/jboss/cache/factories/XmlConfigurationParser.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: XmlConfigurationParser.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/factories/XmlConfigurationParser.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -b -r1.18 -r1.19
  --- XmlConfigurationParser.java	11 May 2007 16:48:09 -0000	1.18
  +++ XmlConfigurationParser.java	23 May 2007 04:28:33 -0000	1.19
  @@ -120,6 +120,13 @@
       */
      protected void handleRemovedAttributes(ParsedAttributes attributes)
      {
  +      String evictionPolicy = attributes.stringAttribs.remove("EvictionPolicyClass");
  +      if (evictionPolicy != null)
  +      {
  +         throw new ConfigurationException("XmlConfigurationParser does not " +
  +                "support the JBC 1.x attribute EvictionPolicyClass. Set the default " +
  +                "eviction policy via the policyClass element in the EvictionConfig section");
  +      }
         String multiplexerService = attributes.stringAttribs.remove("MultiplexerService");
         if (multiplexerService != null)
         {
  
  
  



More information about the jboss-cvs-commits mailing list