Package org.apache.wink.jcdi.server.internal.literal

Examples of org.apache.wink.jcdi.server.internal.literal.RequestScopedLiteral


        Annotation[] annotations = pat.getAnnotatedType().getAnnotations()
                .toArray(new Annotation[pat.getAnnotatedType().getAnnotations().size()]);

        if (ResourceMetadataCollector.isResource(beanClass) && !CdiUtils.isBeanWithScope(annotations, beanManager)) {
            logger.trace("{} upgraded to {} scoped bean.", beanClass.getName(), RequestScoped.class.getName());
            pat.setAnnotatedType(new WinkAnnotatedTypeWrapper(pat.getAnnotatedType(), new RequestScopedLiteral()));
        } else if ((ProviderMetadataCollector.isProvider(beanClass) ||
                ApplicationMetadataCollector.isApplication(beanClass)) &&
                !CdiUtils.isBeanWithScope(annotations, beanManager)) {
            logger.trace("{} upgraded to {} scoped bean.", beanClass.getName(), ApplicationScoped.class.getName());
            pat.setAnnotatedType(new WinkAnnotatedTypeWrapper(pat.getAnnotatedType(), new ApplicationScopedLiteral()));
View Full Code Here

TOP

Related Classes of org.apache.wink.jcdi.server.internal.literal.RequestScopedLiteral

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.