public final class AnnotatedDocServicePlugin extends Object implements DocServicePlugin
DocServicePlugin implementation that supports the AnnotatedService.| Constructor and Description |
|---|
AnnotatedDocServicePlugin() |
| Modifier and Type | Method and Description |
|---|---|
ServiceSpecification |
generateSpecification(Set<ServiceConfig> serviceConfigs,
DocServiceFilter filter)
Generates a new
ServiceSpecification that provides the information about the supported
Services. |
String |
name()
Returns the name of this plugin.
|
String |
serializeExampleRequest(String serviceName,
String methodName,
Object exampleRequest)
Serializes the specified example request into a string.
|
Set<Class<?>> |
supportedExampleRequestTypes()
Returns the
Set of the example request types supported by this plugin. |
Set<Class<? extends Service<?,?>>> |
supportedServiceTypes()
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitguessServiceMethodName, guessServiceName, loadDocStringspublic String name()
DocServicePluginname in interface DocServicePluginpublic Set<Class<? extends Service<?,?>>> supportedServiceTypes()
DocServicePluginsupportedServiceTypes in interface DocServicePluginpublic ServiceSpecification generateSpecification(Set<ServiceConfig> serviceConfigs, DocServiceFilter filter)
DocServicePluginServiceSpecification that provides the information about the supported
Services.generateSpecification in interface DocServicePluginserviceConfigs - the ServiceConfigs of the Services that are instances of the
DocServicePlugin.supportedServiceTypes()filter - the DocServiceFilter that checks whether a method will be included while
building DocServicepublic Set<Class<?>> supportedExampleRequestTypes()
DocServicePluginSet of the example request types supported by this plugin.supportedExampleRequestTypes in interface DocServicePluginpublic String serializeExampleRequest(String serviceName, String methodName, Object exampleRequest)
DocServicePluginserializeExampleRequest in interface DocServicePluginserviceName - the name of the servicemethodName - the name of the methodexampleRequest - the example requestnull if not able to serialize.Copyright © 2020 LeanCloud. All rights reserved.