public class LoadFromRelativeFile extends java.lang.Object implements ResourceLoader, StoryLoader
mavenModuleStoryFilePath(java.lang.String)
,
mavenModuleTestStoryFilePath(java.lang.String)
intellijProjectStoryFilePath(java.lang.String)
intellijProjectTestStoryFilePath(java.lang.String)
CodeLocations#codeLocationFromClass(Class)}
Modifier and Type | Class and Description |
---|---|
static class |
LoadFromRelativeFile.StoryFilePath
For use the the varargs constructor of
LoadFromRelativeFile , to
allow a range of possibilities for locating Story file paths |
Constructor and Description |
---|
LoadFromRelativeFile(java.net.URL location) |
LoadFromRelativeFile(java.net.URL location,
LoadFromRelativeFile.StoryFilePath... traversals) |
Modifier and Type | Method and Description |
---|---|
static LoadFromRelativeFile.StoryFilePath |
intellijProjectStoryFilePath(java.lang.String relativePath)
Intellij by default, has its PRODUCTION classes in classes/production.
|
static LoadFromRelativeFile.StoryFilePath |
intellijProjectTestStoryFilePath(java.lang.String relativePath)
Intellij by default, has its TEST classes in classes/test.
|
protected java.lang.String |
loadContent(java.lang.String path) |
java.lang.String |
loadResourceAsText(java.lang.String resourcePath) |
java.lang.String |
loadStoryAsText(java.lang.String storyPath) |
static LoadFromRelativeFile.StoryFilePath |
mavenModuleStoryFilePath(java.lang.String relativePath)
Maven by default, has its PRODUCTION classes in target/classes.
|
static LoadFromRelativeFile.StoryFilePath |
mavenModuleTestStoryFilePath(java.lang.String relativePath)
Maven by default, has its TEST classes in target/test-classes.
|
public LoadFromRelativeFile(java.net.URL location)
public LoadFromRelativeFile(java.net.URL location, LoadFromRelativeFile.StoryFilePath... traversals)
public java.lang.String loadResourceAsText(java.lang.String resourcePath)
loadResourceAsText
in interface ResourceLoader
public java.lang.String loadStoryAsText(java.lang.String storyPath)
loadStoryAsText
in interface StoryLoader
protected java.lang.String loadContent(java.lang.String path)
public static LoadFromRelativeFile.StoryFilePath mavenModuleStoryFilePath(java.lang.String relativePath)
relativePath
- the path to the stories' base-dir inside the modulepublic static LoadFromRelativeFile.StoryFilePath mavenModuleTestStoryFilePath(java.lang.String relativePath)
relativePath
- the path to the stories' base-dir inside the modulepublic static LoadFromRelativeFile.StoryFilePath intellijProjectStoryFilePath(java.lang.String relativePath)
relativePath
- the path to the stories' base-dir inside the modulepublic static LoadFromRelativeFile.StoryFilePath intellijProjectTestStoryFilePath(java.lang.String relativePath)
relativePath
- the path to the stories' base-dir inside the moduleCopyright © 2003-2014. All Rights Reserved.