public interface TemplateFacet extends ProjectFacet
Modifier and Type | Method and Description |
---|---|
FileResource<?> |
getResource(String path)
Return the
FileResource at the given path relative to
getRootTemplateDirectory() . |
DirectoryResource |
getRootTemplateDirectory()
Get the
DirectoryResource representing the directory this
Project uses to store templates across all providers. |
getFaceted, install, isInstalled, uninstall
DirectoryResource getRootTemplateDirectory()
DirectoryResource
representing the directory this
Project
uses to store templates across all providers.FileResource<?> getResource(String path)
FileResource
at the given path relative to
getRootTemplateDirectory()
. The FileResource
object is returned
regardless of whether the target actually exists. To determine if the file exists, you should call
Resource.exists()
on the return value of this method.path
- The path to the templateCopyright © 2014 JBoss by Red Hat. All rights reserved.