Package org.apache.webbeans.annotation

Examples of org.apache.webbeans.annotation.DefaultLiteral


    {
        boolean isDefined = XMLDefinitionUtil.defineXMLBindingType(component, annotationSet, annotationElementList, createConfigurationFailedMessage());

        if (!isDefined)
        {
            component.addQualifier(new DefaultLiteral());
        }

    }
View Full Code Here


             * .lang.String)
             */
            @Override
            public void sendRedirect(String location) throws IOException
            {
                Bean<?> bean = BeanManagerImpl.getManager().resolveByType(Conversation.class, new DefaultLiteral()).iterator().next();
                Conversation conversation = (Conversation)BeanManagerImpl.getManager().getInstance(bean,null);

                String path = location;

                if (conversation != null)
View Full Code Here

   
    public InjectionPointBean()
    {
        super(WebBeansType.INJECTIONPOINT,InjectionPoint.class);
       
        addQualifier(new DefaultLiteral());
        setImplScopeType(new DependentScopeLiteral());
        addApiType(InjectionPoint.class);
        addApiType(Object.class);
    }
View Full Code Here

            typeArray = typeArguments.toArray(typeArray);
            model = new XMLInjectionPointModel(clazz, typeArray);

            if (bindingAnnots.isEmpty())
            {
                model.addBindingType(new DefaultLiteral());
            }

            for (Annotation annot : bindingAnnots)
            {
                model.addBindingType(annot);
View Full Code Here

            }
        }

        if (anns.size() == 0)
        {
            model.addBindingType(new DefaultLiteral());
        }

        for (Annotation ann : anns)
        {
            model.addBindingType(ann);
View Full Code Here

            }
        }

        if (anns.size() == 0)
        {
            component.addQualifier(new DefaultLiteral());
        }

        for (Annotation ann : anns)
        {
            component.addQualifier(ann);
View Full Code Here

        }
       
        //Add the default qualifier if no others exist.  Section 3.10, OWB-142///
        if(set.size() == 0)
        {
          set.add(new DefaultLiteral());
        }
        ////////////////////////////////////////////////////////////////////////

        Annotation[] a = new Annotation[set.size()];
        a = set.toArray(a);
View Full Code Here

        Assert.assertEquals("Sucess from getProducts",injector.getTestNamed3());
       
        String icb = getInstance(String.class, new NamedLiteral("ProMethodNamed1"));
        Assert.assertEquals(icb, "Sucess from ProMethodNamed1");
       
        InformationConsumerBean cb = getInstance(InformationConsumerBean.class, new DefaultLiteral());
        Assert.assertNotNull(cb);
       
        Assert.assertEquals(cb.getProMethodString(), "Sucess from ProMethodNamed1");
       
        shutDownContainer();
View Full Code Here

            listAnnot.add(ann);
        }

        if (listAnnot.isEmpty())
        {
            listAnnot.add(new DefaultLiteral());
        }

        while (it.hasNext())
        {
            decorator = (WebBeansDecorator<?>) it.next();
View Full Code Here

                boolean observesAnnotation = false;

                if (annot.length == 0)
                {
                    annot = new Annotation[1];
                    annot[0] = new DefaultLiteral();
                }
                else
                {
                    for (Annotation observersAnnot : annot)
                    {
View Full Code Here

TOP

Related Classes of org.apache.webbeans.annotation.DefaultLiteral

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.