Class ClassPathWithAnnoSource
java.lang.Object
com.levigo.jadice.web.shared.model.Source
com.levigo.jadice.web.shared.PasswordContainingSource
com.levigo.jadice.web.demo.common.shared.service.sources.ClassPathWithAnnoSource
- All Implemented Interfaces:
Serializable
A source that reads a file from the class path. This source supports composite documents.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClassPathWithAnnoSource(String resource) In case of non-composite documents the resource can also serve as identifier for the whole document.ClassPathWithAnnoSource(String resource, String identifier) In case of composite documents a unique identifier for the whole document is required apart from the resource description of the partial document. document. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetIdentifier(String identifier) voidsetResource(String resource) toString()Methods inherited from class com.levigo.jadice.web.shared.PasswordContainingSource
getPassword, setPassword
-
Field Details
-
TYPE
-
-
Constructor Details
-
ClassPathWithAnnoSource
public ClassPathWithAnnoSource() -
ClassPathWithAnnoSource
In case of non-composite documents the resource can also serve as identifier for the whole document.- Parameters:
resource- The resource identifier; in this case the filename of the file to load
-
ClassPathWithAnnoSource
In case of composite documents a unique identifier for the whole document is required apart from the resource description of the partial document. document.- Parameters:
resource- The resource identifier; in this case the filename of the file to loadidentifier- The unique(!) identifier of this source. Whenever the same(!) document on the file system is used as part of a composite document AND in another test case as a standalone test document, it is mandatory to provide a unique identifier here
-
-
Method Details