public class WadlGeneratorDescription extends Object
WadlGenerator implementation with
the specified getGeneratorClass(). The WadlGenerator properties
are populated with the provided properties like this:
org.example.Foo and the
provided property value is of type org.example.FooInputStream: The stream is loaded from the
property value (provided by the WadlGeneratorDescription) via
ClassLoader.getResourceAsStream(String). It will be closed after WadlGenerator.init() was called.
File and the provided property value is a String:File is created via
new File( generator.getClass().getResource( strippedFilename ).toURI() )
Notice that the filename is loaded from the classpath in this case, e.g. classpath:test.xml
refers to a file in the package of the class (getGeneratorClass()). The
file reference classpath:/test.xml refers to a file that is in the root of the classpath.
| Constructor and Description |
|---|
WadlGeneratorDescription() |
WadlGeneratorDescription(Class<? extends WadlGenerator> generatorClass,
Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getConfiguratorClass()
Return
WadlGeneratorConfig that was used to produce current description instance. |
Class<? extends WadlGenerator> |
getGeneratorClass() |
Properties |
getProperties() |
void |
setGeneratorClass(Class<? extends WadlGenerator> generatorClass) |
void |
setProperties(Properties properties) |
public WadlGeneratorDescription()
public WadlGeneratorDescription(Class<? extends WadlGenerator> generatorClass, Properties properties)
public Class<? extends WadlGenerator> getGeneratorClass()
public void setGeneratorClass(Class<? extends WadlGenerator> generatorClass)
generatorClass - the generatorClass to setpublic Properties getProperties()
public void setProperties(Properties properties)
properties - the properties to setpublic Class<?> getConfiguratorClass()
WadlGeneratorConfig that was used to produce current description instance.
The result could be null if the config was not set on this instance.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.