Package org.jboss.aop.advice

Examples of org.jboss.aop.advice.Interceptor


      if (!(obj instanceof ClassProxy))
      {
         throw new PojoCacheException("CollectionClassHandler.collectionRemoveObject(): object is not a proxy :" + obj);
      }

      Interceptor interceptor = CollectionInterceptorUtil.getInterceptor((ClassProxy) obj);
      boolean removeFromCache = true;
      // detach the interceptor. This will trigger a copy and remove.
      ((AbstractCollectionInterceptor) interceptor).detach(removeFromCache);
      return ((AbstractCollectionInterceptor) interceptor).getCurrentCopy();
   }
View Full Code Here


   void put(Fqn fqn, Object obj, String field) throws CacheException
   {
      CachedType type = cache.getCachedType(obj.getClass());

      InstanceAdvisor advisor = null;
      Interceptor interceptor = null;

      if (obj instanceof Advised)
      {
         advisor = ((Advised) obj)._getInstanceAdvisor();
         if (advisor == null)
View Full Code Here

   }


   private boolean isMultipleReferencedPut(Object obj)
   {
      Interceptor interceptor = null;
      if (obj instanceof Advised)
      {
         InstanceAdvisor advisor = ((Advised) obj)._getInstanceAdvisor();
         if (advisor == null)
         {
View Full Code Here

   {
      org.jboss.aop.advice.Interceptor[] interceptors = advisor.getInterceptors();
      // Step Check for cross references
      for (int i = 0; i < interceptors.length; i++)
      {
         Interceptor interceptor = interceptors[i];
         if (interceptor instanceof CacheFieldInterceptor)
         {
            CacheFieldInterceptor inter = (CacheFieldInterceptor) interceptor;
            if (inter != null && inter.getFqn().equals(fqn))
            {
View Full Code Here

      // TODO we assume there is only one interceptor now.
      Interceptor[] interceptors = advisor.getInterceptors();
      // Step Check for cross references
      for (int i = 0; i < interceptors.length; i++)
      {
         Interceptor interceptor = interceptors[i];
         if (interceptor instanceof CacheFieldInterceptor)
         {
            return interceptor;
         }
      }
View Full Code Here

      // TODO we assume there is only one interceptor now.
      Interceptor[] interceptors = advisor.getInterceptors();
      // Step Check for cross references
      for (int i = 0; i < interceptors.length; i++)
      {
         Interceptor interceptor = interceptors[i];
         if (interceptor instanceof BaseInterceptor)
         {
            return interceptor;
         }
      }
View Full Code Here

           
            for (int i = 0 ; i < icptrs.length ; i++)
            {
               if (icptrs[i] instanceof AbstractAdvice == false)
               {
                  Interceptor icptr = null;
                  if (icptrs[i] instanceof PerInstanceInterceptor && !Modifier.isStatic(info.getMethod().getModifiers()))
                  {
                     requiresInstanceAdvisor = true;
                     InstanceAdvisor ia = getProxyInstanceAdvisor();
                     icptr = ((PerInstanceInterceptor)icptrs[i]).getAspectInstance(ia);
View Full Code Here

         {
            throw new RuntimeException("Before/After/Throwing is only supported for Generated Advisors");
         }
         if (factories[i].isDeployed())
         {
            Interceptor interceptor = factories[i].create(this, joinpoint);
            if (interceptor != null)
            {
               newinterceptors.add(interceptor);
            }
         }
View Full Code Here

   static public Interceptor findCacheInterceptor(InstanceAdvisor advisor, Fqn fqn)
   {
      org.jboss.aop.advice.Interceptor[] interceptors = advisor.getInterceptors();
      // Step Check for cross references
      for (int i = 0; i < interceptors.length; i++) {
         Interceptor interceptor = interceptors[i];
         if (interceptor instanceof CacheInterceptor) {
            CacheInterceptor inter = (CacheInterceptor)interceptor;
            if (inter != null && inter.getFqn().equals(fqn))
            {
               return interceptor;
View Full Code Here

   {
      // TODO we assume there is only one interceptor now.
      Interceptor[] interceptors = advisor.getInterceptors();
      // Step Check for cross references
      for (int i = 0; i < interceptors.length; i++) {
         Interceptor interceptor = interceptors[i];
         if (interceptor instanceof CacheInterceptor) {
               return interceptor;
         }
      }
      return null;
View Full Code Here

TOP

Related Classes of org.jboss.aop.advice.Interceptor

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.