|
Forge - Parent 1.4.2-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScaffoldTemplateFacet
Method Summary | |
---|---|
FileResource<?> |
createResource(char[] data,
String provider,
String relativeFilename)
At the given path/filename relative to the scaffold provider specific directory under the project templates directory: #getTemplateDirectory() - create a file containing the given bytes. |
FileResource<?> |
createResource(InputStream data,
String provider,
String relativeFilename)
At the given path/filename relative to the scaffold provider specific directory under the project templates directory: #getTemplateDirectory() - create a file containing the given bytes. |
FileResource<?> |
createResource(String data,
String provider,
String relativeFilename)
At the given path/filename relative to the scaffold provider specific directory under the project templates directory: #getTemplateDirectory() - create a file containing the given bytes. |
FileResource<?> |
getResource(String provider,
String relativePath)
Return the FileResource at the given path relative to #getTemplateDirectory() . |
DirectoryResource |
getRootTemplateDirectory()
Get the DirectoryResource representing the directory this Project uses to store templates across
all scaffold providers. |
DirectoryResource |
getTemplateDirectory(String provider)
Get the DirectoryResource representing the directory this Project uses to store templates for the
provided scaffold provider. |
Methods inherited from interface org.jboss.forge.project.Facet |
---|
getProject, install, isInstalled, setProject, uninstall |
Method Detail |
---|
DirectoryResource getRootTemplateDirectory()
DirectoryResource
representing the directory this Project
uses to store templates across
all scaffold providers.
DirectoryResource getTemplateDirectory(String provider)
DirectoryResource
representing the directory this Project
uses to store templates for the
provided scaffold provider.
FileResource<?> createResource(InputStream data, String provider, String relativeFilename)
#getTemplateDirectory()
- create a file containing the given bytes.
The provider name cannot be null.
FileResource
that was created.FileResource<?> createResource(char[] data, String provider, String relativeFilename)
#getTemplateDirectory()
- create a file containing the given bytes.
The provider name cannot be null.
FileResource
that was created.FileResource<?> createResource(String data, String provider, String relativeFilename)
#getTemplateDirectory()
- create a file containing the given bytes.
The provider name cannot be null.
FileResource
that was created.FileResource<?> getResource(String provider, String relativePath)
FileResource
at the given path relative to #getTemplateDirectory()
. The
FileResource
object is returned regardless of whether the target actually exists. To determine if the file
exists, you should call FileResource.exists()
on the return value of this method.
|
Forge - Parent 1.4.2-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |