Package org.apache.webbeans.exception

Examples of org.apache.webbeans.exception.WebBeansDeploymentException


            //configure specialized producer beans.
            webBeansContext.getWebBeansUtil().configureProducerMethodSpecializations();
        }
        catch(Exception e)
        {
            throw new WebBeansDeploymentException(e);
        }
       

        logger.debug("Checking Specialization constraints has ended.");
    }
View Full Code Here


            annotationDB.setScanMethodAnnotations(true);
            annotationDB.setScanParameterAnnotations(true);
        }
        catch(Exception e)
        {
            throw new WebBeansDeploymentException(e);
        }
    }
View Full Code Here

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

        {
            throw e;
        }
        catch (Exception e)
        {
            throw new WebBeansDeploymentException(e);
        }
       

        logger.fine("Checking Specialization constraints has ended.");
    }
View Full Code Here

        {
            throw e;
        }
        catch (Exception e)
        {
            throw new WebBeansDeploymentException(e);
        }
       

        logger.fine("Checking Specialization constraints has ended.");
    }
View Full Code Here

                    Class<?> specialClass = annotatedType.getJavaClass();
                    Class<?> superClass = specialClass.getSuperclass();

                    if(superClass.equals(Object.class))
                    {
                        throw new WebBeansDeploymentException(new WebBeansConfigurationException(WebBeansLoggerFacade.getTokenString(OWBLogConst.EXCEPT_0003)
                                + specialClass.getName() + WebBeansLoggerFacade.getTokenString(OWBLogConst.EXCEPT_0004)));
                    }
                    if (superClassList.contains(superClass))
                    {
                        // since CDI 1.1 we have to wrap this in a DeploymentException
                        throw new WebBeansDeploymentException(new InconsistentSpecializationException(WebBeansLoggerFacade.getTokenString(OWBLogConst.EXCEPT_0005) +
                                                                       superClass.getName()));
                    }
                    if (!containsAllSuperclassTypes(annotatedType, superClass, annotatedTypes))
                    {
                        throw new WebBeansDeploymentException(new InconsistentSpecializationException("@Specialized Class : " + specialClass.getName()
                                                                          + " must have all bean types of its super class"));
                    }

                    AnnotatedType<?> superType = getAnnotatedTypeForClass(annotatedTypes, superClass);

                    if (!webBeansUtil.isConstructorOk(superType))
                    {
                        throw new WebBeansDeploymentException(new InconsistentSpecializationException("@Specializes class " + specialClass.getName()
                                + " does not extend a bean with a valid bean constructor"));
                    }

                    try
                    {
                        webBeansUtil.checkManagedBean(specialClass);
                    }
                    catch (WebBeansConfigurationException illegalBeanTypeException)
                    {
                        // this Exception gets thrown if the given class is not a valid bean type
                        throw new WebBeansDeploymentException(new InconsistentSpecializationException("@Specializes class " + specialClass.getName()
                                                                    + " does not extend a valid bean type", illegalBeanTypeException));
                    }

                    superClassList.add(superClass);
View Full Code Here

                {
                    addBeanXml(new URL(url));
                }
                catch (MalformedURLException e)
                {
                    throw new WebBeansDeploymentException("could not convert to URL: " + url, e);
                }
            }
        }
    }
View Full Code Here

            configure();
            initFinder();
        }
        catch (Exception e)
        {
            throw new WebBeansDeploymentException(e);
        }
    }
View Full Code Here

        {
            throw e;
        }
        catch (Exception e)
        {
            throw new WebBeansDeploymentException(e);
        }
       

        logger.fine("Checking Specialization constraints has ended.");
    }
View Full Code Here

            {
                throw  (WebBeansDeploymentException)e;
            }
            else
            {
                throw new WebBeansDeploymentException(e);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.webbeans.exception.WebBeansDeploymentException

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.