Skip to content

Instantly share code, notes, and snippets.

@jeanouii
Created February 17, 2014 14:37
Show Gist options
  • Select an option

  • Save jeanouii/9051772 to your computer and use it in GitHub Desktop.

Select an option

Save jeanouii/9051772 to your computer and use it in GitHub Desktop.
for (final ProviderInfo<RequestHandler> rh : factory.getRequestHandlers()) {
final RequestHandler provider = rh.getProvider();
if (WadlGenerator.class.isInstance(provider)) {
final WadlGenerator wadlGenerator = WadlGenerator.class.cast(provider);
final Boolean ignoreRequests = SystemInstance.get().getProperty("openejb.cxf-rs.wadl-generator.ignoreRequests");
final Boolean ignoreMessageWriters = SystemInstance.get().getProperty("openejb.cxf-rs.wadl-generator.ignoreMessageWriters");
if (ignoreRequests != null) {
wadlGenerator.setIgnoreRequests(ignoreRequests);
}
// CXF-5319: bug in CXF? it prevents to get the wadl as json otherwise
if (ignoreMessageWriters != null) {
wadlGenerator.setIgnoreMessageWriters(ignoreMessageWriters);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment