Package org.jboss.interceptor

Examples of org.jboss.interceptor.InterceptorException


      {
         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

      {
         if (interceptorsList.contains(interceptor))
         {
            if (interceptionType != null)
            {
               throw new InterceptorException("Duplicate interceptor class definition when binding" + interceptor + " on " + interceptionType.name());
            }
         }
      }
   }
View Full Code Here

        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

      if (methods != null)
      {
         DelegatingInvocationContext delegatingInvocationContext = new DelegatingInvocationContext(invocationContext, getInterceptorInstance(), methods);
         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

            catch (InvocationTargetException e)
            {
               if (e.getCause() instanceof Exception)
                  throw (Exception)e.getCause();
               else
                  throw new InterceptorException(e);
            }
         } else
         {
            return delegateInvocationContext.proceed();
         }
View Full Code Here

         T proxyObject = c.newInstance();
         ((ProxyObject)proxyObject).setHandler(interceptorMethodHandler);
         return proxyObject;
      } catch (Exception e)
      {
         throw new InterceptorException(e);
      }
   }
View Full Code Here

      try
      {
         return (T) proxyFactory.create(constructorTypes, constructorArguments);
      } catch (Exception e)
      {
         throw new InterceptorException(e);
      }
   }
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.