Examples of asClass()


Examples of org.jboss.jandex.AnnotationValue.asClass()

        return value != null ? value.asString() : null;
    }

    private String classValueOrNull(final AnnotationInstance annotation, final String attribute) {
        final AnnotationValue value = annotation.value(attribute);
        return value != null ? value.asClass().name().toString() : null;
    }
}
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asClass()

    }

    private String getMessageListenerInterface(final CompositeIndex compositeIndex, final AnnotationInstance messageBeanAnnotation) throws DeploymentUnitProcessingException {
        final AnnotationValue value = messageBeanAnnotation.value("messageListenerInterface");
        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())) {
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asClass()

        for (AnnotationInstance annotation : resourceAnnotations) {
            final AnnotationTarget annotationTarget = annotation.target();
            final AnnotationValue nameValue = annotation.value("name");
            final String name = (nameValue != null) ? replacer.replaceProperties(nameValue.asString()) : null;
            final AnnotationValue typeValue = annotation.value("type");
            final String type = typeValue != null ? typeValue.asClass().name().toString() : null;
            if (annotationTarget instanceof FieldInfo) {
                final FieldInfo fieldInfo = (FieldInfo) annotationTarget;
                final ClassInfo classInfo = fieldInfo.declaringClass();
                EEModuleClassDescription classDescription = eeModuleDescription.addOrGetLocalClassDescription(classInfo.name().toString());
                processFieldResource(phaseContext, fieldInfo, name, type, classDescription, annotation, eeModuleDescription, module, applicationClasses, replacer);
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asClass()

                final AnnotationInstance[] values = outerAnnotation.value("value").asNestedArray();
                for (AnnotationInstance annotation : values) {
                    final AnnotationValue nameValue = annotation.value("name");
                    final String name = (nameValue != null) ? replacer.replaceProperties(nameValue.asString()) : null;
                    final AnnotationValue typeValue = annotation.value("type");
                    final String type = (typeValue != null) ? typeValue.asClass().name().toString() : null;
                    EEModuleClassDescription classDescription = eeModuleDescription.addOrGetLocalClassDescription(classInfo.name().toString());
                    processClassResource(phaseContext, name, type, classDescription, annotation, eeModuleDescription, module, applicationClasses, replacer);
                }
            }
        }
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asClass()

        final AnnotationValue declaredWsdlLocation = annotationInstance.value("wsdlLocation");
        String wsdlLocationValue = declaredWsdlLocation == null ? "" : declaredWsdlLocation.asString();
        if (wsdlLocationValue.length() > 0)
            ref.setWsdlFile(wsdlLocationValue);
        final AnnotationValue declaredTypeValue = annotationInstance.value("type");
        DotName declaredType = declaredTypeValue != null ? declaredTypeValue.asClass().name() : null;
        if (declaredType != null && declaredType.toString() != Object.class.getName()) {
            ref.setServiceRefType(declaredType.toString());
        } else
            ref.setServiceRefType(getType(annotationTarget));
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asClass()

            ref.setServiceRefType(declaredType.toString());
        } else
            ref.setServiceRefType(getType(annotationTarget));

        final AnnotationValue declaredValue = annotationInstance.value("value");
        DotName value = declaredValue != null ? declaredValue.asClass().name() : null;
        if (declaredValue != null && !declaredValue.toString().equals(Service.class.getName())) {
            ref.setServiceInterface(value.toString());
        }
        else {
            ClassInfo targetClass = getTypeInfo(annotationTarget);
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asClass()

    }

    private String getMessageListenerInterface(final CompositeIndex compositeIndex, final AnnotationInstance messageBeanAnnotation) throws DeploymentUnitProcessingException {
        final AnnotationValue value = messageBeanAnnotation.value("messageListenerInterface");
        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())) {
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asClass()

            return value != null ? value.asString() : null;
        }

        private String classValueOrNull(final AnnotationInstance annotation, final String attribute) {
            final AnnotationValue value = annotation.value(attribute);
            return value != null ? value.asClass().name().toString() : null;
        }
    }
}
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asClass()

      targetTypeName = targetAnnotation.value().asClass().name().toString();
    }

    AnnotationValue targetEntityValue = associationAnnotation.value( "targetEntity" );
    if ( targetEntityValue != null ) {
      targetTypeName = targetEntityValue.asClass().name().toString();
    }

    return targetTypeName;
  }
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asClass()

        final AnnotationValue beanNameValue = annotation.value("beanName");
        final String beanName = beanNameValue != null ? beanNameValue.asString() : null;

        final AnnotationValue beanInterfaceValue = annotation.value("beanInterface");
        final String beanInterface = beanInterfaceValue != null ? beanInterfaceValue.asClass().name().toString() : null;

        final AnnotationValue descriptionValue = annotation.value("description");
        final String description = descriptionValue != null ? descriptionValue.asString() : null;

        final AnnotationValue lookupValue = annotation.value("lookup");
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.