Package org.jboss.interceptor

Examples of org.jboss.interceptor.InterceptorException


        InterceptorProxyCreatorImpl proxyCreator = new InterceptorProxyCreatorImpl(interceptorRegistries, interceptionHandlerFactory);
         return (T) proxyCreator.createProxyFromInstance(instance, superClass);
      }
      catch (Exception e)
      {
         throw new InterceptorException(e);
      }
   }
View Full Code Here


        InterceptorProxyCreatorImpl proxyCreator = new InterceptorProxyCreatorImpl(Collections.<InterceptorRegistry<Class<?>, ?>>singletonList(interceptorRegistry), Collections.<InterceptionHandlerFactory<?>>singletonList(interceptionHandlerFactory));
         return (T) proxyCreator.createProxyFromInstance(instance, superClass);
      }
      catch (Exception e)
      {
         throw new InterceptorException(e);
      }
   }
View Full Code Here

      try
      {
         this.interceptorInstance = simpleInterceptorClass.newInstance();
      } catch (Exception e)
      {
         throw new InterceptorException("Cannot create interceptor instance:", e);
      }

   }
View Full Code Here

      {
         throw e;
      }
      catch (Throwable t)
      {
         throw new InterceptorException(t);
      }
   }
View Full Code Here

         {
            return InterceptorClassMetadataRegistry.getRegistry().getInterceptorClassMetadata(ReflectionUtils.classForName(className));
         }
         catch (ClassNotFoundException e)
         {
            throw new InterceptorException("Failed to deserialize the interceptor class metadata", e);
         }
      }
View Full Code Here

            }
            return new MethodHolder(methodName, parameterTypes, declaringClass);
         }
         catch (ClassNotFoundException e)
         {
            throw new InterceptorException("Error while deserializing intercepted instance", e);
         }
      }
View Full Code Here

   private void appendInterceptorClassesToList(InterceptionType interceptionType, List<I> interceptorsList, I... interceptors)
   {
      for (I interceptor: interceptors)
         if (interceptorsList.contains(interceptor))
            if (interceptionType != null)
                throw new InterceptorException("Duplicate interceptor class definition when binding" + interceptor + " on " + interceptionType.name());
            else
                throw new InterceptorException("Duplicate interceptor class definition when binding" + interceptor + " as general interceptor");
      else
            interceptorsList.add(interceptor);
   }
View Full Code Here

      {
         return loadInterceptorMetadata();
      }
      catch (ClassNotFoundException e)
      {
         throw new InterceptorException("Failed to deserialize the interceptor class metadata", e);
      }
   }
View Full Code Here

      try
      {
         this.interceptorInstance = simpleInterceptorClass.newInstance();
      } catch (Exception e)
      {
         throw new InterceptorException("Cannot create interceptor instance:", e);
      }

   }
View Full Code Here

         DelegatingInvocationContext delegatingInvocationContext = new DelegatingInvocationContext(invocationContext, getInterceptorInstance(), methods, interceptionType);
         return delegatingInvocationContext.proceed();
      }
      else
      {
         throw new InterceptorException(target.toString() + " was requested to perform " + interceptionType.name() + " but no such method is defined on it");
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.interceptor.InterceptorException

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.