Package org.jsondoc.springmvc.scanner
Class AbstractSpringJSONDocScanner
java.lang.Object
org.jsondoc.core.scanner.AbstractJSONDocScanner
org.jsondoc.springmvc.scanner.AbstractSpringJSONDocScanner
- All Implemented Interfaces:
org.jsondoc.core.scanner.JSONDocScanner
- Direct Known Subclasses:
Spring3JSONDocScanner,Spring4JSONDocScanner
public abstract class AbstractSpringJSONDocScanner
extends org.jsondoc.core.scanner.AbstractJSONDocScanner
-
Field Summary
Fields inherited from class org.jsondoc.core.scanner.AbstractJSONDocScanner
allApiMethodDocs, jsondocChangelogs, jsondocControllers, jsondocFlows, jsondocGlobal, jsondocMethods, jsondocMigrations, jsondocObjects, jsondocTemplates, log, reflections -
Constructor Summary
Constructors Constructor Description AbstractSpringJSONDocScanner() -
Method Summary
Modifier and Type Method Description static Set<Class<?>>buildJSONDocObjectsCandidates(Set<Class<?>> candidates, Class<?> clazz, Type type, org.reflections.Reflections reflections)Returns a set of classes that are either return types or body objectsorg.jsondoc.core.pojo.ApiDocinitApiDoc(Class<?> controller)ApiDoc is initialized with the Controller's simple class name.org.jsondoc.core.pojo.ApiMethodDocinitApiMethodDoc(Method method, Map<Class<?>,org.jsondoc.core.pojo.JSONDocTemplate> jsondocTemplates)org.jsondoc.core.pojo.ApiObjectDocinitApiObjectDoc(Class<?> clazz)Set<Class<?>>jsondocChangelogs()Set<Class<?>>jsondocFlows()Set<Class<?>>jsondocGlobal()Set<Method>jsondocMethods(Class<?> controller)Set<Class<?>>jsondocMigrations()Set<Class<?>>jsondocObjects(List<String> packages)org.jsondoc.core.pojo.ApiDocmergeApiDoc(Class<?> controller, org.jsondoc.core.pojo.ApiDoc apiDoc)Once the ApiDoc has been initialized and filled with other data (version, auth, etc) it's time to merge the documentation with JSONDoc annotation, if existing.org.jsondoc.core.pojo.ApiMethodDocmergeApiMethodDoc(Method method, org.jsondoc.core.pojo.ApiMethodDoc apiMethodDoc)org.jsondoc.core.pojo.ApiObjectDocmergeApiObjectDoc(Class<?> clazz, org.jsondoc.core.pojo.ApiObjectDoc apiObjectDoc)Methods inherited from class org.jsondoc.core.scanner.AbstractJSONDocScanner
enumConstantsToStringArray, getApiDocs, getApiDocsMap, getApiFlowDocs, getApiFlowDocsMap, getApiGlobalDoc, getApiObjectDocs, getApiObjectsMap, getJSONDoc, jsondocControllers
-
Constructor Details
-
AbstractSpringJSONDocScanner
public AbstractSpringJSONDocScanner()
-
-
Method Details
-
jsondocMethods
- Specified by:
jsondocMethodsin classorg.jsondoc.core.scanner.AbstractJSONDocScanner
-
buildJSONDocObjectsCandidates
public static Set<Class<?>> buildJSONDocObjectsCandidates(Set<Class<?>> candidates, Class<?> clazz, Type type, org.reflections.Reflections reflections)Returns a set of classes that are either return types or body objects- Parameters:
candidates-clazz-type-reflections-- Returns:
-
jsondocObjects
- Specified by:
jsondocObjectsin classorg.jsondoc.core.scanner.AbstractJSONDocScanner
-
jsondocFlows
- Specified by:
jsondocFlowsin classorg.jsondoc.core.scanner.AbstractJSONDocScanner
-
initApiDoc
ApiDoc is initialized with the Controller's simple class name.- Specified by:
initApiDocin classorg.jsondoc.core.scanner.AbstractJSONDocScanner
-
mergeApiDoc
public org.jsondoc.core.pojo.ApiDoc mergeApiDoc(Class<?> controller, org.jsondoc.core.pojo.ApiDoc apiDoc)Once the ApiDoc has been initialized and filled with other data (version, auth, etc) it's time to merge the documentation with JSONDoc annotation, if existing.- Specified by:
mergeApiDocin classorg.jsondoc.core.scanner.AbstractJSONDocScanner
-
initApiMethodDoc
public org.jsondoc.core.pojo.ApiMethodDoc initApiMethodDoc(Method method, Map<Class<?>,org.jsondoc.core.pojo.JSONDocTemplate> jsondocTemplates)- Specified by:
initApiMethodDocin classorg.jsondoc.core.scanner.AbstractJSONDocScanner
-
mergeApiMethodDoc
public org.jsondoc.core.pojo.ApiMethodDoc mergeApiMethodDoc(Method method, org.jsondoc.core.pojo.ApiMethodDoc apiMethodDoc)- Specified by:
mergeApiMethodDocin classorg.jsondoc.core.scanner.AbstractJSONDocScanner
-
initApiObjectDoc
- Specified by:
initApiObjectDocin classorg.jsondoc.core.scanner.AbstractJSONDocScanner
-
mergeApiObjectDoc
public org.jsondoc.core.pojo.ApiObjectDoc mergeApiObjectDoc(Class<?> clazz, org.jsondoc.core.pojo.ApiObjectDoc apiObjectDoc)- Specified by:
mergeApiObjectDocin classorg.jsondoc.core.scanner.AbstractJSONDocScanner
-
jsondocGlobal
- Specified by:
jsondocGlobalin classorg.jsondoc.core.scanner.AbstractJSONDocScanner
-
jsondocChangelogs
- Specified by:
jsondocChangelogsin classorg.jsondoc.core.scanner.AbstractJSONDocScanner
-
jsondocMigrations
- Specified by:
jsondocMigrationsin classorg.jsondoc.core.scanner.AbstractJSONDocScanner
-