public final class FaceletsConfigurationManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FaceletsConfigurationManager.FaceletsConfiguration |
Modifier and Type | Method and Description |
---|---|
boolean |
addFaceletsSuffix(Project project,
java.lang.String suffix,
boolean makeDefault)
Add the suffix to the configuration parameter "javax.faces.FACELETS_VIEW_MAPPINGS"
If makeDefault is true, the suffix is prepended to the FACELETS_VIEW_MAPPINGS, so that
it is returned by getDefaultFaceletsSuffix()
|
void |
configureProject(Project project)
Configure the Project for Facelets
|
boolean |
creatingJSFCheckForFaceletsCheck(Context context)
Deprecated.
|
java.lang.String |
getDefaultFaceletsSuffix(Project project)
Determine the default Facelets Suffix, as defined for the Project
|
FaceletsConfigurationManager.FaceletsConfiguration |
getFaceletsConfiguration(Context projectContext)
Determine if the Project has been configured for Facelets.
|
static FaceletsConfigurationManager |
getFaceletsConfigurationManager() |
java.util.Collection<java.lang.String> |
getFaceletsIncludedSuffixes(Project project)
Get the list of suffixes configured in the configuration parameter
"javax.faces.FACELETS_VIEW_MAPPINGS" and any other extensions that can be
included in a facelets page such as fragments
|
java.util.Collection<java.lang.String> |
getFaceletsSuffixes(Project project)
Get the list of suffixes configured in the configuration parameter
"javax.faces.FACELETS_VIEW_MAPPINGS"
|
boolean |
isConfiguredForFacelets(Context projectContext)
Determine if the Project is configured to use Facelets.
|
boolean |
isConfiguredForFacelets(Context projectContext,
boolean defaultOk)
Determine if the Project is configured to use Facelets.
|
boolean |
isConfiguredForFacelets(Project project)
Deprecated.
|
boolean |
isFaceletsFile(Project project,
java.net.URL url)
Determine if the URL is a Facelets file.
|
boolean |
isFaceletsFile(Project project,
java.net.URL url,
boolean checkDefaults)
Determine if the URL is a Facelets file.
|
boolean |
isFaceletsPage(Context context)
Determines if the context's node is a Facelets node.
|
boolean |
isFaceletsSuffix(Project project,
java.lang.String suffix,
boolean checkDefaults)
Determine if the suffix corresponds to a Facelets view mapping suffix.
|
void |
registerFaceletsConfigurationHandler(MetaClass<FaceletsConfigurationHandler> factory) |
public static FaceletsConfigurationManager getFaceletsConfigurationManager()
public void registerFaceletsConfigurationHandler(MetaClass<FaceletsConfigurationHandler> factory)
public boolean isConfiguredForFacelets(Context projectContext)
projectContext
- public boolean isConfiguredForFacelets(Context projectContext, boolean defaultOk)
projectContext
- public FaceletsConfigurationManager.FaceletsConfiguration getFaceletsConfiguration(Context projectContext)
projectContext
- @Deprecated public boolean isConfiguredForFacelets(Project project)
project
- public void configureProject(Project project)
project
- public boolean addFaceletsSuffix(Project project, java.lang.String suffix, boolean makeDefault)
project
- suffix
- makeDefault
- if true, the suffix is prepended to the FACELETS_VIEW_MAPPINGSpublic java.util.Collection<java.lang.String> getFaceletsSuffixes(Project project)
project
- public java.util.Collection<java.lang.String> getFaceletsIncludedSuffixes(Project project)
project
- public boolean isFaceletsFile(Project project, java.net.URL url, boolean checkDefaults)
project
- url
- checkDefaults
- public boolean isFaceletsFile(Project project, java.net.URL url)
project
- url
- public boolean isFaceletsSuffix(Project project, java.lang.String suffix, boolean checkDefaults)
project
- suffix
- checkDefaults
- public java.lang.String getDefaultFaceletsSuffix(Project project)
project
- public boolean isFaceletsPage(Context context)
context
- @Deprecated public boolean creatingJSFCheckForFaceletsCheck(Context context)
context
-