Created
February 17, 2014 14:37
-
-
Save jeanouii/9051772 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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