Class WadlGeneratorLoader

java.lang.Object
org.glassfish.jersey.server.wadl.config.WadlGeneratorLoader

class WadlGeneratorLoader extends Object
Loads WadlGenerators from a provided list of WadlGeneratorDescriptions.
The properties of the WadlGeneratorDescriptions can refer to WadlGenerator properties of these types:
  • exact match: if the WadlGenerator property is of type org.example.Foo and the property value provided by the WadlGeneratorDescription is of type org.example.Foo
  • java.io.InputStream: The InputStream can e.g. represent a file. The stream is loaded from the property value (provided by the WadlGeneratorDescription) via ClassLoader.getResourceAsStream(String) or via OSGi API means if OSGi runtime is detected. The stream will be closed after WadlGenerator.init() was called.
  • Types that provide a constructor for the provided type (mostly java.lang.String)
  • Deprecated, will be removed in future versions from the WadlGeneratorLoader:
    java.lang.File: The property value can contain the prefix classpath: to denote, that the path to the file is relative to the classpath. In this case, the property value is stripped by the prefix classpath: and the java.lang.File is created via
    new File( generator.getClass().getResource( strippedFilename ).toURI() )