com.mangofactory.swagger.plugin
Class SwaggerPluginAdapter

java.lang.Object
  extended by com.mangofactory.swagger.plugin.SwaggerPluginAdapter
All Implemented Interfaces:
java.util.EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>

public class SwaggerPluginAdapter
extends java.lang.Object
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>

After an application context refresh, builds and executes all SwaggerSpringMvcPlugin instances found in the application context. If no instances SwaggerSpringMvcPlugin are found a default one is created and executed.


Constructor Summary
SwaggerPluginAdapter(SpringSwaggerConfig springSwaggerConfig)
           
 
Method Summary
 void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent contextRefreshedEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwaggerPluginAdapter

public SwaggerPluginAdapter(SpringSwaggerConfig springSwaggerConfig)
Method Detail

onApplicationEvent

public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent contextRefreshedEvent)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>