Package org.jboss.jandex

Examples of org.jboss.jandex.DotName


        // while getting an SLSB instance).
        this.processAccessTimeoutAnnotations(beanClass, compositeIndex, componentDescription);
    }

    private void processAccessTimeoutAnnotations(ClassInfo beanClass, CompositeIndex compositeIndex, SessionBeanComponentDescription componentDescription) throws DeploymentUnitProcessingException {
        final DotName superName = beanClass.superName();
        if (superName != null) {
            ClassInfo superClass = compositeIndex.getClassByName(superName);
            if (superClass != null)
                processAccessTimeoutAnnotations(superClass, compositeIndex, componentDescription);
        }
View Full Code Here


                    configurations.add(getEjbInjectionConfiguration(annotation, deploymentUnit,componentDescription));
                }
            }
        }
        // Process the super class for @EJB annotations
        DotName superName = classInfo.superName();
        if (superName != null && !superName.toString().equals(Object.class.getName())) {
            ClassInfo superClass = index.getClassByName(superName);
            if (superClass != null) {
                configurations.addAll(this.getEjbInjectionConfigurations(index, superClass, deploymentUnit,componentDescription));
            }
        }
View Full Code Here

        if (value != null)
            return value.asClass().name().toString();
        final ClassInfo beanClass = (ClassInfo) messageBeanAnnotation.target();
        final Set<DotName> interfaces = new HashSet<DotName>(getPotentialViewInterfaces(beanClass));
        // check super class(es) of the bean
        DotName superClassDotName = beanClass.superName();
        while (interfaces.isEmpty() && superClassDotName != null && !superClassDotName.toString().equals(Object.class.getName())) {
            final ClassInfo superClass = compositeIndex.getClassByName(superClassDotName);
            if (superClass == null) {
                break;
            }
            interfaces.addAll(getPotentialViewInterfaces(superClass));
View Full Code Here

        if(compositeIndex == null) {
            log.warnf("Cannot find composite annotation index in: %s", depUnit);
            return;
        }

        final DotName dotName = DotName.createSimple(Inject.class.getName());
        final List<AnnotationInstance> annotationList = compositeIndex.getAnnotations(dotName);
        if (annotationList.isEmpty()) {
            return;
        }
View Full Code Here

            log.warnf("Cannot find composite annotation index in: %s", deploymentUnit);
            return;
        }

        // Got JUnit?
        final DotName runWithName = DotName.createSimple(CLASS_NAME_JUNIT_RUNNER);
        final List<AnnotationInstance> runWithList = compositeIndex.getAnnotations(runWithName);

        // Got TestNG?
        final DotName testNGClassName = DotName.createSimple(CLASS_NAME_TESTNG_RUNNER);
        final Set<ClassInfo> testNgTests = compositeIndex.getAllKnownSubclasses(testNGClassName);

        // Get Test Class Names
        final Set<String> testClasses = new HashSet<String>();
        // JUnit
View Full Code Here

    }

    private static boolean isWebserviceEndpoint(final ServletMetaData servletMD, final CompositeIndex index, boolean jaxws) {
        final String endpointClassName = ASHelper.getEndpointName(servletMD);
        if (isJSP(endpointClassName)) return false;
        final DotName endpointDotName = DotName.createSimple(endpointClassName);
        final ClassInfo endpointClassInfo = index.getClassByName(endpointDotName);

        if (endpointClassInfo != null) {
            if (jaxws) {
                //directly check annotations when looking for jaxws endpoints
View Full Code Here

        Set<DotName> interfacesToProcess = new HashSet<DotName>();
        Set<DotName> processedInterfaces = new HashSet<DotName>();
        boolean b = isServlet(info, index, interfacesToProcess);
        while (!b && !interfacesToProcess.isEmpty()) {
            final Iterator<DotName> toProcess = interfacesToProcess.iterator();
            DotName dn = toProcess.next();
            toProcess.remove();
            processedInterfaces.add(dn);
            b = extendsServlet(dn, index, interfacesToProcess, processedInterfaces);
        }
        return b;
View Full Code Here

                return true;
            } else {
                interfaces.add(dn);
            }
        }
        final DotName superName = info.superName();
        if (!"java.lang.Object".equals(superName.toString())) {
            ClassInfo su = index.getClassByName(superName);
            if (su != null) {
                return isServlet(su, index, interfaces);
            }
        }
View Full Code Here

    }

    private static boolean extendsServlet(DotName current, CompositeIndex index, Set<DotName> interfacesToProcess, Set<DotName> processedInterfaces) {
        ClassInfo ci = index.getClassByName(current);
        if (ci != null) {
            final DotName superName = ci.superName();
            if (SERVLET_CLASS_NAME.equals(superName.toString())) {
                return true;
            } else if (!"java.lang.Object".equals(superName.toString()) && !processedInterfaces.contains(superName)) {
                interfacesToProcess.add(superName);
            }
        }
        return false;
    }
View Full Code Here

    }

    public static boolean isJaxwsService(final ClassInfo current, final CompositeIndex index) {
        ClassInfo tmp = current;
        while (tmp != null) {
            final DotName superName = tmp.superName();
            if (JAXWS_SERVICE_CLASS.equals(superName)) {
                return true;
            }
            tmp = index.getClassByName(superName);
        }
View Full Code Here

TOP

Related Classes of org.jboss.jandex.DotName

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.