use of com.webcohesion.enunciate.module.ApiRegistryProviderModule in project enunciate by stoicflame.
the class AggregatedApiRegistry method getServiceApis.
@Override
public List<ServiceApi> getServiceApis(ApiRegistrationContext context) {
ArrayList<ServiceApi> serviceApis = new ArrayList<ServiceApi>();
List<EnunciateModule> modules = enunciate.getModules();
for (EnunciateModule module : modules) {
if (module.isEnabled() && module instanceof ApiRegistryProviderModule) {
serviceApis.addAll(((ApiRegistryProviderModule) module).getApiRegistry().getServiceApis(context));
}
}
return serviceApis;
}
use of com.webcohesion.enunciate.module.ApiRegistryProviderModule in project enunciate by stoicflame.
the class AggregatedApiRegistry method getResourceApis.
@Override
public List<ResourceApi> getResourceApis(ApiRegistrationContext context) {
ArrayList<ResourceApi> resourceApis = new ArrayList<ResourceApi>();
List<EnunciateModule> modules = enunciate.getModules();
for (EnunciateModule module : modules) {
if (module.isEnabled() && module instanceof ApiRegistryProviderModule) {
resourceApis.addAll(((ApiRegistryProviderModule) module).getApiRegistry().getResourceApis(context));
}
}
return resourceApis;
}
use of com.webcohesion.enunciate.module.ApiRegistryProviderModule in project enunciate by stoicflame.
the class AggregatedApiRegistry method getSyntaxes.
@Override
public Set<Syntax> getSyntaxes(ApiRegistrationContext context) {
Set<Syntax> syntaxes = new TreeSet<Syntax>();
List<EnunciateModule> modules = enunciate.getModules();
for (EnunciateModule module : modules) {
if (module.isEnabled() && module instanceof ApiRegistryProviderModule) {
syntaxes.addAll(((ApiRegistryProviderModule) module).getApiRegistry().getSyntaxes(context));
}
}
return syntaxes;
}
Aggregations