[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo ...

Manik Surtani msurtani at jboss.com
Thu Jul 20 14:43:12 EDT 2006


  User: msurtani
  Date: 06/07/20 14:43:12

  Modified:    src-50/org/jboss/cache/pojo  PojoTreeCache.java
  Log:
  migrated to new configurators
  
  Revision  Changes    Path
  1.11      +6 -6      JBossCache/src-50/org/jboss/cache/pojo/PojoTreeCache.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PojoTreeCache.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/PojoTreeCache.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- PojoTreeCache.java	17 Jul 2006 09:07:08 -0000	1.10
  +++ PojoTreeCache.java	20 Jul 2006 18:43:12 -0000	1.11
  @@ -32,7 +32,8 @@
                           long state_fetch_timeout)
              throws Exception
      {
  -      super(cluster_name, props, state_fetch_timeout);
  +      //super(cluster_name, props, state_fetch_timeout);
  +       // TODO: Use a cache factory and delegation
      }
   
      public PojoTreeCache() throws Exception
  @@ -70,10 +71,9 @@
      /**
       * Over-ride to make sure we are using an eviction policy specific to aop.
       */
  -   @Override
      public void setEvictionPolicyClass(String eviction_policy_class)
      {
  -      this.eviction_policy_class = eviction_policy_class;
  +      this.getConfiguration().setEvictionPolicyClass(eviction_policy_class);
         if (eviction_policy_class == null || eviction_policy_class.length() == 0)
            return;
   
  @@ -83,7 +83,7 @@
            if (! (obj instanceof AopEvictionPolicy))
               throw new RuntimeException("PojoCache.setEvictionPolicyClass(). Eviction policy provider:" +
                       eviction_policy_class + " is not an instance of AopEvictionPolicy.");
  -         super.setEvictionPolicyClass(eviction_policy_class);
  +         super.getConfiguration().setEvictionPolicyClass(eviction_policy_class);
         }
         catch (RuntimeException ex)
         {
  @@ -196,7 +196,7 @@
      @Override
      public void activateRegion(String subtreeFqn) throws RegionNotEmptyException, RegionNameConflictException, CacheException
      {
  -      if (!useRegionBasedMarshalling)
  +      if (!getConfiguration().isUseRegionBasedMarshalling())
            throw new IllegalStateException("TreeCache.activateRegion(). useRegionBasedMarshalling flag is not set!");
   
         if ("/".equals(subtreeFqn))
  @@ -208,7 +208,7 @@
         {
            // If the internal region is not activated yet, activate it first
            Region region = regionManager_.getRegion(InternalConstant.JBOSS_INTERNAL);
  -         if ((region == null && inactiveOnStartup)
  +         if ((region == null && getConfiguration().isInactiveOnStartup())
                    || (region != null && region.isInactive()))
            {
               super.activateRegion(InternalConstant.JBOSS_INTERNAL.toString());
  
  
  



More information about the jboss-cvs-commits mailing list