Examples of WeldException


Examples of org.jboss.weld.exceptions.WeldException

            if (e.getCause() instanceof InstantiationException) {
                throw new DefinitionException(BeanLogger.LOG.proxyInstantiationFailed(this), e.getCause());
            } else if (e.getCause() instanceof IllegalAccessException) {
                throw new DefinitionException(BeanLogger.LOG.proxyInstantiationBeanAccessFailed(this), e.getCause());
            } else {
                throw new WeldException(e.getCause());
            }
        }
        ((ProxyObject) proxy).setHandler(new ProxyMethodHandler(contextId, beanInstance, bean));
        return proxy;
    }
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

                    // two fake constructors that call each other
                    addConstructorsForBeanWithPrivateConstructors(proxyClassType);
                }
            }
        } catch (Exception e) {
            throw new WeldException(e);
        }
    }
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

                        }
                    }
                }
            }
        } catch (Exception e) {
            throw new WeldException(e);
        }
    }
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

            generateSetMethodHandlerBody(proxyClassType.addMethod(setMethodHandlerMethod));

            Method getMethodHandlerMethod = ProxyObject.class.getMethod("getHandler");
            generateGetMethodHandlerBody(proxyClassType.addMethod(getMethodHandlerMethod));
        } catch (Exception e) {
            throw new WeldException(e);
        }
    }
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

                });
            }
        } catch (RuntimeException e) {
            throw e;
        } catch (Throwable e) {
            throw new WeldException(e);
        }
    }
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

                return AccessController.doPrivileged(new MethodLookupAction(javaClass, methodName, parameterTypes));
            } catch (PrivilegedActionException e) {
                if (e.getCause() instanceof NoSuchMethodException) {
                    throw (NoSuchMethodException) e.getCause();
                }
                throw new WeldException(e.getCause());
            }
        } else {
            return MethodLookupAction.lookupMethod(javaClass, methodName, parameterTypes);
        }
    }
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

        Method method = null;
        if (!PRIORITY_ANNOTATION_CLASS.equals(DummyAnnotation.class)) {
            try {
                method = PRIORITY_ANNOTATION_CLASS.getMethod("value");
            } catch (Throwable e) {
                throw new WeldException(e);
            }
        }
        this.PRIORITY_VALUE = method;
    }
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

                    } else {
                        method.getJavaMember().setAccessible(true);
                    }
                    builder.put(method, method.getJavaMember().invoke(instance));
                } catch (IllegalAccessException e) {
                    throw new WeldException(e);
                } catch (InvocationTargetException e) {
                    throw new WeldException(e);
                }
            }
        }
        return builder.build();
    }
View Full Code Here

Examples of org.jboss.weld.exceptions.WeldException

                public Object run() throws Exception {
                    return Class.forName(className, true, getClassLoader(this.getClass()));
                }
            });
        } catch (PrivilegedActionException pae) {
            throw new WeldException(BeanMessage.CANNOT_LOAD_CLASS, className, pae.getException());
        }
    }
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.