Class SpringUtil
- java.lang.Object
-
- de.unikassel.vs.apirepo.plugins.definitionGenerator.SpringUtil
-
public class SpringUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SpringUtil()
-
Method Summary
Modifier and Type Method Description static voidaddSpringClassesToStructure(java.lang.String baseUrl, java.util.Set<javassist.CtClass> springRestController, Structure structure)static booleancheckSpringAnnotation(javassist.CtMethod ctMethod)static TypegetTypeForParameterWithAnnotationCheck(java.lang.Object[] parameterAnnotation, java.lang.String name)static voidsetPathAndRequestMethod(java.lang.String parentPath, javassist.CtMethod ctMethod, Method method)
-
-
-
Method Detail
-
checkSpringAnnotation
public static boolean checkSpringAnnotation(javassist.CtMethod ctMethod)
-
getTypeForParameterWithAnnotationCheck
public static Type getTypeForParameterWithAnnotationCheck(java.lang.Object[] parameterAnnotation, java.lang.String name)
-
setPathAndRequestMethod
public static void setPathAndRequestMethod(java.lang.String parentPath, javassist.CtMethod ctMethod, Method method) throws java.lang.ClassNotFoundException- Throws:
java.lang.ClassNotFoundException
-
addSpringClassesToStructure
public static void addSpringClassesToStructure(java.lang.String baseUrl, java.util.Set<javassist.CtClass> springRestController, Structure structure) throws java.lang.ClassNotFoundException, javassist.NotFoundException, javassist.CannotCompileException- Throws:
java.lang.ClassNotFoundExceptionjavassist.NotFoundExceptionjavassist.CannotCompileException
-
-