public class WadlGeneratorDescription
extends java.lang.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.Foo
InputStream
: 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(java.lang.Class<? extends WadlGenerator> generatorClass,
java.util.Properties properties) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends WadlGenerator> |
getGeneratorClass() |
java.util.Properties |
getProperties() |
void |
setGeneratorClass(java.lang.Class<? extends WadlGenerator> generatorClass) |
void |
setProperties(java.util.Properties properties) |
public WadlGeneratorDescription()
public WadlGeneratorDescription(java.lang.Class<? extends WadlGenerator> generatorClass, java.util.Properties properties)
public java.lang.Class<? extends WadlGenerator> getGeneratorClass()
public void setGeneratorClass(java.lang.Class<? extends WadlGenerator> generatorClass)
generatorClass
- the generatorClass to setpublic java.util.Properties getProperties()
public void setProperties(java.util.Properties properties)
properties
- the properties to setCopyright © 2016 Oracle Corporation. All Rights Reserved.