congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ClassUtils.getOrCreateInterface
Code IndexAdd Tabnine to your IDE (free)

How to use
getOrCreateInterface
method
in
io.servicecomb.swagger.generator.core.utils.ClassUtils

Best Java code snippets using io.servicecomb.swagger.generator.core.utils.ClassUtils.getOrCreateInterface (Showing top 3 results out of 315)

origin: io.servicecomb/java-chassis-core

public SchemaMeta(Swagger swagger, MicroserviceMeta microserviceMeta, String schemaId) {
 this.packageName = SchemaUtils.generatePackageName(microserviceMeta, schemaId);
 this.swagger = swagger;
 this.name = schemaId;
 this.microserviceMeta = microserviceMeta;
 this.microserviceQualifiedName = microserviceMeta.getName() + "." + schemaId;
 // 确保swagger对应的接口是存在的
 swaggerIntf = ClassUtils.getOrCreateInterface(swagger, microserviceMeta.getClassLoader(), packageName);
 createOperationMgr("schemaMeta " + schemaId + " operation mgr");
 operationMgr.setRegisterErrorFmt("Operation name repeat, schema=%s, operation=%s");
 initOperations();
}
origin: io.servicecomb/swagger-invocation-core

public SwaggerProducer createProducer(Object producerInstance, Swagger swagger) {
 Class<?> producerCls = BeanUtils.getImplClassFromBean(producerInstance);
 Map<String, Method> visibleProducerMethods = retrieveVisibleMethods(producerCls);
 Class<?> swaggerIntf = ClassUtils.getOrCreateInterface(swagger, null, null);
origin: io.servicecomb/java-chassis-core

 protected SwaggerGenerator generateSwagger(CONTEXT context) {
  SwaggerGeneratorContext generatorContext =
    compositeSwaggerGeneratorContext.selectContext(context.getProviderClass());
  SwaggerGenerator generator = new SwaggerGenerator(generatorContext, context.getProviderClass());
  generator.setClassLoader(context.getMicroserviceMeta().getClassLoader());
  generator.setPackageName(
    SchemaUtils.generatePackageName(context.getMicroserviceMeta(), context.getSchemaId()));
  generator.generate();

  // 确保接口是存在的
  ClassUtils.getOrCreateInterface(generator);
  return generator;
 }
}
io.servicecomb.swagger.generator.core.utilsClassUtilsgetOrCreateInterface

Popular methods of ClassUtils

  • correctClassName
  • getClassByName
  • hasAnnotation
  • isRawJsonType

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • BoxLayout (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now