|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.api.wadl.config.WadlGeneratorConfig.WadlGeneratorConfigDescriptionBuilder
public static class WadlGeneratorConfig.WadlGeneratorConfigDescriptionBuilder
Constructor Summary | |
---|---|
WadlGeneratorConfig.WadlGeneratorConfigDescriptionBuilder()
|
Method Summary | |
---|---|
WadlGeneratorConfig |
build()
|
java.util.List<WadlGeneratorDescription> |
descriptions()
|
WadlGeneratorConfig.WadlGeneratorConfigDescriptionBuilder |
generator(java.lang.Class<? extends WadlGenerator> generatorClass)
|
WadlGeneratorConfig.WadlGeneratorConfigDescriptionBuilder |
prop(java.lang.String propName,
java.lang.String propValue)
Specify the property value for the current WadlGenerator . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WadlGeneratorConfig.WadlGeneratorConfigDescriptionBuilder()
Method Detail |
---|
public WadlGeneratorConfig.WadlGeneratorConfigDescriptionBuilder generator(java.lang.Class<? extends WadlGenerator> generatorClass)
public WadlGeneratorConfig.WadlGeneratorConfigDescriptionBuilder prop(java.lang.String propName, java.lang.String propValue)
WadlGenerator
.
The WadlGenerator
property can be of type String
, File
, InputStream
or any type that provides a String
constructor.
If the WadlGenerator
property is of type File
, then the specified property value can start with the
prefix classpath: to denote, that the File shall be loaded from the classpath like this:
new File( generator.getClass().getResource( strippedFilename ).toURI() )
Notice that the file is loaded as a resource from the classpath in this case, therefore classpath:test.xml
refers to a file in the package of the specified <classname>
. The
file reference classpath:/test.xml refers to a file that is in the root of the classpath.
If the WadlGenerator
property is of type InputStream
, then the specified property value
is loaded with ClassLoader.getResourceAsStream(String)
using the current threads context classloader.
The InputStream
will be closed after WadlGenerator.init()
was called and therefore must not be closed
by the WadlGenerator
using this stream.
propName
- the property namepropValue
- the stringified property value
public java.util.List<WadlGeneratorDescription> descriptions()
public WadlGeneratorConfig build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |