Examples of CurrentLiteral


Examples of org.apache.webbeans.annotation.CurrentLiteral

        account.withdraw(new BigDecimal(3000));

        Set<Class<?>> apiTyeps = new HashSet<Class<?>>();
        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

        ContextFactory.initRequestContext(null);

        LoggedInEvent event = new LoggedInEvent("Gurkan");

        Annotation[] anns = new Annotation[1];
        anns[0] = new CurrentLiteral();

        getManager().fireEvent(event, anns);

        ComponentWithObserves1 instance = getManager().getInstance(component);
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

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

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

    }
View Full Code Here

Examples of org.apache.webbeans.annotation.CurrentLiteral

       

        // No-binding annotation
        if (component.getQualifiers().size() == 0)
        {
            component.addQualifier(new CurrentLiteral());
        }
       
        //Add @Any support
        if(!AnnotationUtil.isAnyQualifierExist(component))
        {
View Full Code Here

Examples of org.apache.webbeans.annotation.CurrentLiteral

            listAnnot.add(ann);
        }

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

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

Examples of org.apache.webbeans.annotation.CurrentLiteral

        boolean returnAll = false;

        if (qualifier.length == 0)
        {
            qualifier = new Annotation[1];
            qualifier[0] = new CurrentLiteral();
            currentQualifier = true;
        }
       
        if (injectionPointType.equals(Object.class) && currentQualifier)
        {
View Full Code Here

Examples of org.apache.webbeans.annotation.CurrentLiteral

    public InjectionPointBean(InjectionPoint injectionPoint)
    {
        super(WebBeansType.INJECTIONPOINT,InjectionPoint.class);
        this.injectionPoint = injectionPoint;
       
        addQualifier(new CurrentLiteral());
        setImplScopeType(new DependentScopeLiteral());
        setType(new StandardLiteral());
        addApiType(InjectionPoint.class);
        addApiType(Object.class);
    }
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
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.