Package org.apache.webbeans.exception.inject

Examples of org.apache.webbeans.exception.inject.DeploymentException


            /* <Deploy> element decleration */
            else if (XMLUtil.isElementDeployDeclaration(child))
            {
                if (DEPLOY_IS_DEFINED)
                {
                    throw new DeploymentException("There can not be more than one web-beans.xml file that declares <Deploy> element");
                }
                else
                {
                    if (!XMLUtil.isElementChildExist(child, WebBeansConstants.WEB_BEANS_XML_STANDART_ELEMENT))
                    {
                        throw new DeploymentException("<Deploy> element must have <Standard/> deployment type in the web-beans.xml");
                    }
                   
                    DeploymentTypeManager.getInstance().removeProduction();
                   
                    configureDeploymentTypes(child);
View Full Code Here


            /* <Deploy> element decleration */
            if (XMLUtil.getName(child).equals(WebBeansConstants.WEB_BEANS_XML_SPEC_SPECIFIC_DEPLOY_ELEMENT))
            {
                if (DEPLOY_IS_DEFINED)
                {
                    throw new DeploymentException("There can not be more than one web-beans.xml file that declares <deploy> element");
                }
                else
                {
                    if (!XMLUtil.isElementChildExist(child, WebBeansConstants.WEB_BEANS_XML_STANDART_ELEMENT))
                    {
                        throw new DeploymentException("<Deploy> element must have <Standard/> deployment type in the web-beans.xml");
                    }
                   
                    DeploymentTypeManager.getInstance().removeProduction();
                   
                    configureDeploymentTypes(child);
View Full Code Here

            clazzAnnot = (Class<? extends Annotation>) clazz;
        }

        if (xmlAnnotTypeManager.isBindingTypeExist(clazzAnnot))
        {
            throw new DeploymentException(createConfigurationFailedMessage() + "Binding type with given class : " + bindingTypeElement.getName() + " is already defined in the XML");
        }

        xmlAnnotTypeManager.addBindingType(clazzAnnot);
    }
View Full Code Here

            clazzAnnot = (Class<? extends Annotation>) clazz;
        }

        if (xmlAnnotTypeManager.isInterceptorBindingTypeExist(clazzAnnot))
        {
            throw new DeploymentException(createConfigurationFailedMessage() + "InterceptorBinding type with given class : " + interceptorBindingTypeElement.getName() + " is already defined in the XML");
        }

        List<Element> childs = interceptorBindingTypeElement.elements();
        for (Element child : childs)
        {
View Full Code Here

            clazzAnnot = (Class<? extends Annotation>) clazz;
        }

        if (xmlAnnotTypeManager.isStereoTypeExist(clazzAnnot))
        {
            throw new DeploymentException(createConfigurationFailedMessage() + "Stereotype with given class : " + stereoTypeElement.getName() + " is already defined in the XML");
        }

        xmlAnnotTypeManager.addStereoType(clazzAnnot, stereoTypeElement, clazzAnnot.getName(), createConfigurationFailedMessage());

    }
View Full Code Here

                        webBeansContext.getAnnotationManager().getInterceptorBindingMetaAnnotations(anns));
            }
            else
            {
                // TODO could probably be a bit more descriptive
                throw new DeploymentException("Cannot create Interceptor for class" + injectionTargetEvent.getAnnotatedType());
            }
        }

    }
View Full Code Here

                WebBeansDecoratorConfig.configureDecoratorClass(delegate);
            }
            else
            {
                // TODO could probably be a bit more descriptive
                throw new DeploymentException("Cannot create Decorator for class" + processInjectionTargetEvent.getAnnotatedType());
            }
        }
    }
View Full Code Here

        ManagedBean<T> bean = defineManagedBean(managedBeanCreator, processInjectionTargetEvent, false);
        if (bean == null)
        {
            // TODO could probably be a bit more descriptive
            throw new DeploymentException("Cannot create ManagedBean for class" + processInjectionTargetEvent.getAnnotatedType());
        }

        //X TODO move proxy instance creation into JavassistProxyFactory!
        Class clazz = webBeansContext.getProxyFactory().createAbstractDecoratorProxyClass(bean);
View Full Code Here

    {
        String id = (String) s.readObject();
        Bean<T> b = (Bean<T>) WebBeansContext.currentInstance().getBeanManagerImpl().getPassivationCapableBean(id);
        if (b == null)
        {
            throw new DeploymentException("cannot deserialize Bean with PassivationCapable id=" + id);
        }
        if (b instanceof SerializableBean)
        {
            b = ((SerializableBean<T>)b).getBean();
        }
View Full Code Here

TOP

Related Classes of org.apache.webbeans.exception.inject.DeploymentException

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.