Package org.jboss.cache.pojo.interceptors.dynamic

Examples of org.jboss.cache.pojo.interceptors.dynamic.BaseInterceptor


         Object obj = it.next();

         if (obj instanceof InstanceAdvisor)
         {
            InstanceAdvisor advisor = (InstanceAdvisor) obj;
            BaseInterceptor interceptor = (BaseInterceptor) undoMap.get(advisor);

            if (interceptor == null)
            {
               throw new IllegalStateException("PojoCacheDelegate.undoInterceptorDetach(): null interceptor");
            }

            advisor.appendInterceptor(interceptor);
         }
         else
         {
            BaseInterceptor interceptor = (BaseInterceptor) undoMap.get(obj);
            boolean copyToCache = false;
            ((AbstractCollectionInterceptor) interceptor).attach(null, copyToCache);
         }
      }
   }
View Full Code Here


      if (isCollection)
      {
         // Need to reset it here in case this is a new proxy instance
         pojoInstance.set(obj);
         // Attach pojoReference to that interceptor
         BaseInterceptor baseInterceptor = (BaseInterceptor) CollectionInterceptorUtil.getInterceptor(
               (ClassProxy) obj);
         baseInterceptor.setAopInstance(pojoInstance);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.pojo.interceptors.dynamic.BaseInterceptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.