Examples of WeldException


Examples of org.jboss.weld.exceptions.WeldException

                        Object thatValue = annotatedMethod.getJavaMember().invoke(other);
                        if (!thisValue.equals(thatValue)) {
                            return false;
                        }
                    } catch (IllegalArgumentException e) {
                        throw new WeldException(e);
                    } catch (IllegalAccessException e) {
                        throw new WeldException(e);
                    } catch (InvocationTargetException e) {
                        throw new WeldException(e);
                    }

                }
            }
            return true;
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

                        Object thatValue = annotatedMethod.getJavaMember().invoke(other);
                        if (!thisValue.equals(thatValue)) {
                            return false;
                        }
                    } catch (IllegalArgumentException e) {
                        throw new WeldException(e);
                    } catch (IllegalAccessException e) {
                        throw new WeldException(e);
                    } catch (InvocationTargetException e) {
                        throw new WeldException(e);
                    }

                }
            }
            return true;
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

    @Override
    public Class<?> loadBeanClass(String className) {
        try {
            return currentClassLoader.loadClass(className);
        } catch (ClassNotFoundException e) {
            throw new WeldException(e);
        }
    }
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

        try {
            return callback.aroundConstruct(ctx, constructor, parameters, data);
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new WeldException(e);
        }
    }
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

            newTargetBeanInstance.setInterceptorsHandler(methodHandler);
            ProxyFactory.setBeanInstance(beanManager.getContextId(), proxy, newTargetBeanInstance, bean);
            return proxy;
        } catch (PrivilegedActionException e) {
            if (e.getCause() instanceof InstantiationException) {
                throw new WeldException(BeanLogger.LOG.proxyInstantiationFailed(this), e.getCause());
            } else if (e.getCause() instanceof IllegalAccessException) {
                throw new WeldException(BeanLogger.LOG.proxyInstantiationBeanAccessFailed(this), e.getCause());
            } else {
                throw new WeldException(e.getCause());
            }
        }
    }
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

        DecorationHelper<T> decorationHelper = new DecorationHelper<T>(beanInstance, bean, proxyClass, manager, manager.getServices().get(ContextualStore.class), decorators);
        DecorationHelper.push(decorationHelper);
        try {
            final T outerDelegate = decorationHelper.getNextDelegate(originalInjectionPoint, creationalContext);
            if (outerDelegate == null) {
                throw new WeldException(BeanLogger.LOG.proxyInstantiationFailed(this));
            }
            return outerDelegate;
        } finally {
            DecorationHelper.pop();
        }
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

                try {
                    chain.invokeNextInterceptor(invocationCtx);
                } catch (RuntimeException e) {
                    throw e;
                } catch (Throwable e) {
                    throw new WeldException(e);
                }
                return target.get();
            }
        };
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

                Method method = transactionManagementAnnotation.annotationType().getMethod("value");
                value = method.invoke(transactionManagementAnnotation);
            } catch (NoSuchMethodException e) {
                return true;
            } catch (Exception e) {
                throw new WeldException(e);
            }
            return CONTAINER_MANAGED_TRANSACTION_MANAGEMENT_ENUM_VALUE.equals(value);
        }
        return false;
    }
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

        DecorationHelper<T> decorationHelper = new DecorationHelper<T>(beanInstance, bean, proxyClass, manager, manager.getServices().get(ContextualStore.class), decorators);
        DecorationHelper.push(decorationHelper);
        try {
            final T outerDelegate = decorationHelper.getNextDelegate(originalInjectionPoint, creationalContext);
            if (outerDelegate == null) {
                throw new WeldException(BeanLogger.LOG.proxyInstantiationFailed(bean));
            }
            return outerDelegate;
        } finally {
            DecorationHelper.pop();
        }
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

            RuntimeException e;
            try {

                e = AccessController.doPrivileged(NewInstanceAction.of(exceptionToThrow));
            } catch (PrivilegedActionException ex) {
                throw new WeldException(ex.getCause());
            }
            e.initCause(t);
            throw e;
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.