Examples of CurrentLiteral


Examples of org.apache.webbeans.annotation.CurrentLiteral

        boolean returnAll = false;

        if (binding.length == 0)
        {
            binding = new Annotation[1];
            binding[0] = new CurrentLiteral();
            currentBinding = true;
        }

        Set<Bean<T>> results = new HashSet<Bean<T>>();
        Set<Bean<?>> deployedComponents = manager.getBeans();
View Full Code Here

Examples of org.apache.webbeans.annotation.CurrentLiteral

            {
                Annotation[] annot = annots[i];
                if (annot.length == 0)
                {
                    annot = new Annotation[1];
                    annot[0] = new CurrentLiteral();
                }

                Type[] args = new Type[0];
                Class<?> clazz = null;
                if (type instanceof ParameterizedType)
View Full Code Here

Examples of org.apache.webbeans.annotation.CurrentLiteral

        try
        {
            if (bindingAnnos.length == 0)
            {
                bindingAnnos = new Annotation[1];
                bindingAnnos[0] = new CurrentLiteral();
            }

            if (!ClassUtil.isPublic(field.getModifiers()))
            {
                field.setAccessible(true);
View Full Code Here

Examples of org.apache.webbeans.annotation.CurrentLiteral

                boolean observesAnnotation = false;

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

Examples of org.apache.webbeans.annotation.CurrentLiteral

        account.withdraw(new BigDecimal(3000));

        Set<Type> apiTyeps = new HashSet<Type>();
        apiTyeps.add(Account.class);

        List<Decorator> decs = getManager().resolveDecorators(apiTyeps, new Annotation[] { new CurrentLiteral() });

        LargeTransactionDecorator dec = (LargeTransactionDecorator) getManager().getInstance(decs.get(0));
        Assert.assertEquals(new BigDecimal(1500), dec.getDepositeAmount());
        Assert.assertEquals(new BigDecimal(3000), dec.getWithDrawAmount());
View Full Code Here

Examples of org.apache.webbeans.annotation.CurrentLiteral

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

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

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

Examples of org.apache.webbeans.annotation.CurrentLiteral

            }
        }

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

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

Examples of org.apache.webbeans.annotation.CurrentLiteral

            }
        }

        if (anns.size() == 0)
        {
            component.addBindingType(new CurrentLiteral());
        }

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

Examples of org.apache.webbeans.annotation.CurrentLiteral

    }

    public Conversation getCurrentConversation()
    {

        Bean<Conversation> bean = ManagerImpl.getManager().resolveByType(Conversation.class, new CurrentLiteral()).iterator().next();
        Conversation conversation = ManagerImpl.getManager().getInstance(bean);

        return conversation;
    }
View Full Code Here

Examples of org.apache.webbeans.annotation.CurrentLiteral

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

                String path = location;

                if (conversation != null)
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.