Package javax.enterprise.inject

Examples of javax.enterprise.inject.IllegalProductException


            /*X TODO see spec issue CDI-140 */
            if(dependentProducer)
            {
                if(injected != null && !Serializable.class.isAssignableFrom(injected.getClass()))
                {
                    throw new IllegalProductException("If a producer method or field of scope @Dependent returns an serializable object for injection " +
                                                    "into an injection point "+ injectionPoint +" that requires a passivation capable dependency");
                }
            }

            // add this dependent into bean dependent list
View Full Code Here


        if (instance == null)
        {
            if (!scopeType.equals(Dependent.class))
            {
                String message = format(errorMessage, errorMessageArgs);
                throw new IllegalProductException(message);
            }
        }
    }
View Full Code Here

        if (webBeansContext.getBeanManagerImpl().isPassivatingScope(scopeType))
        {
            if (!isSerializable)
            {
                String message = format(errorMessage, errorMessageArgs);
                throw new IllegalProductException(message);
            }
        }
    }
View Full Code Here

                                                   ij.getMember().getDeclaringClass().getName(),
                                                   ij.getMember().getName(),
                                                   e.getMessage()),
                                   e);
    } catch (IllegalProductException e) {
      throw new IllegalProductException(L.l("{0}.{1}: {2}",
                                            ij.getMember().getDeclaringClass().getName(),
                                            ij.getMember().getName(),
                                            e.getMessage()),
                                   e);
    } catch (Exception e) {
View Full Code Here

       
        if(dependentProducer)
        {
            if(injected != null && !Serializable.class.isAssignableFrom(injected.getClass()))
            {
                throw new IllegalProductException("If a producer method or field of scope @Dependent returns an serializable object for injection " +
                                                        "into an injection point "+ injectionPoint +" that requires a passivation capable dependency");
            }
        }
       
        // add this dependent into bean dependent list
View Full Code Here

    {
        if (instance == null)
        {
            if (!scopeType.equals(Dependent.class))
            {
                throw new IllegalProductException(errorMessage);
            }
        }

    }
View Full Code Here

    {
        if (BeanManagerImpl.getManager().isPassivatingScope(scopeType))
        {
            if (!isSerializable)
            {
                throw new IllegalProductException(errorMessage);
            }
        }
    }
View Full Code Here

       
        if(dependentProducer)
        {
            if(injected != null && !Serializable.class.isAssignableFrom(injected.getClass()))
            {
                throw new IllegalProductException("If a producer method or field of scope @Dependent returns an serializable object for injection " +
                                                        "into an injection point "+ injectionPoint +" that requires a passivation capable dependency");
            }
        }
       
        // add this dependent into bean dependent list
View Full Code Here

    {
        if (instance == null)
        {
            if (!scopeType.equals(Dependent.class))
            {
                throw new IllegalProductException(errorMessage);
            }
        }

    }
View Full Code Here

    {
        if (BeanManagerImpl.getManager().isPassivatingScope(scopeType))
        {
            if (!isSerializable)
            {
                throw new IllegalProductException(errorMessage);
            }
        }
    }
View Full Code Here

TOP

Related Classes of javax.enterprise.inject.IllegalProductException

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.