Examples of DefinitionException


Examples of com.sun.faban.driver.DefinitionException

    public void validate() throws DefinitionException {
        if (mix.length != operations.length) {
            String msg = "Mix ratios must be " + operations.length +
                    "(#ops) in size!\nFound " + mix.length + ".";
            getLogger().severe(msg);
            DefinitionException e = new DefinitionException(msg);
            getLogger().throwing(className, "validate", e);
            throw e;
        }
    }
View Full Code Here

Examples of javax.enterprise.inject.spi.DefinitionException

                        manager.addObserver(processedObserver);
                    }
                }
            }
        } catch (Exception e) {
            throw new DefinitionException(e);
        }
    }
View Full Code Here

Examples of javax.inject.DefinitionException

               
                if(clazz != null)
                {
                   if(found)
                   {
                       throw new DefinitionException("Multiple class with name : " + clazz.getName());
                   }
                   else
                   {
                       foundClazz = clazz;
                       found = true;
View Full Code Here

Examples of javax.inject.DefinitionException

                if(superBean.getName() != null)
                {
                    if(comp.getName() != null)
                    {
                        throw new DefinitionException("@Specialized Class : " + specializedClass.getName() + " may not explicitly declare a bean name");
                    }                   
                   
                    comp.setName(superBean.getName());
                }
                               
View Full Code Here

Examples of javax.inject.DefinitionException

       
        if(hasName)
        {
            if(AnnotationUtil.isMethodHasAnnotation(method, Named.class))
            {
                throw new DefinitionException("Specialized method : " + method.getName() + " in class : " + component.getReturnType().getName() + " may not define @Named annotation");
            }
           
            component.setName(name);
        }
       
View Full Code Here

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

        if(hasName)
        {
            if(AnnotationUtil.hasMethodAnnotation(method, Named.class))
            {
                throw new DefinitionException("Specialized method : " + method.getName() + " in class : "
                        + component.getReturnType().getName() + " may not define @Named annotation");
            }

            component.setName(name);
        }
View Full Code Here

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

    {
        InjectionTargetBean<T> bean = webBeansContext.getWebBeansUtil().defineManagedBean(type);

        if (bean == null)
        {
            throw new DefinitionException("Could not create InjectionTargetBean for type " + type.getJavaClass());
        }

        return new InjectionTargetProducer<T>(bean);
    }
View Full Code Here

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

                HttpSessionBindingListener.class.isAssignableFrom(clazz) ||
                HttpSessionListener.class.isAssignableFrom(clazz) ||
                ServletRequestListener.class.isAssignableFrom(clazz) ||
                ServletRequestAttributeListener.class.isAssignableFrom(clazz) )
        {
            throw new DefinitionException("Given class  : " + clazz.getName() + " is not managed bean");
        }
    }
View Full Code Here

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

                }

                //Check types of the beans
                if(comp.getClass() != superBean.getClass())
                {
                    throw new DefinitionException("@Specialized Class : " + specializedClass.getName()
                            + " and its super class may be the same type of bean,i.e, ManagedBean, SessionBean etc.");
                }

                if(superBean.getName() != null)
                {
                    if(comp.getName() != null)
                    {
                        throw new DefinitionException("@Specialized Class : " + specializedClass.getName()
                                + " may not explicitly declare a bean name");
                    }

                    comp.setName(superBean.getName());
                    comp.setSpecializedBean(true);
View Full Code Here

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

                }

                //Check types of the beans
                if(comp.getClass() != superBean.getClass())
                {
                    throw new DefinitionException("@Specialized Class : " + specializedClass.getName()
                            + " and its super class may be the same type of bean,i.e, ManagedBean, SessionBean etc.");
                }

                if(superBean.getName() != null)
                {
                    if(comp.getName() != null)
                    {
                        throw new DefinitionException("@Specialized Class : " + specializedClass.getName()
                                + " may not explicitly declare a bean name");
                    }

                    comp.setName(superBean.getName());
                    comp.setSpecializedBean(true);
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.