private void extractMetadata(GraphRewrite event, JavaTypeReferenceModel typeReference) { typeReference.getFile().setGenerateSourceReport(true); JavaAnnotationTypeReferenceModel jaxRSAnnotationTypeReference = (JavaAnnotationTypeReferenceModel) typeReference; String path = getAnnotationLiteralValue(jaxRSAnnotationTypeReference, "value"); JavaClassModel implementationClass = getJavaClass(typeReference); JaxRSWebServiceModelService service = new JaxRSWebServiceModelService(event.getGraphContext()); service.getOrCreate(typeReference.getFile().getApplication(), path, implementationClass); }
private void extractMetadata(GraphRewrite event, JavaTypeReferenceModel typeReference) { typeReference.getFile().setGenerateSourceReport(true); JavaAnnotationTypeReferenceModel jaxRSAnnotationTypeReference = (JavaAnnotationTypeReferenceModel) typeReference; String path = getAnnotationLiteralValue(jaxRSAnnotationTypeReference, "value"); JavaClassModel implementationClass = getJavaClass(typeReference); JaxRSWebServiceModelService service = new JaxRSWebServiceModelService(event.getGraphContext()); service.getOrCreate(typeReference.getFile().getApplication(), path, implementationClass); }