{
if (_developmentStage)
{
if (_useMultipleJsFilesForJsfUncompressedJs)
{
return new AliasResourceMetaImpl(prefix, libraryName, libraryVersion,
resourceName, resourceVersion, ResourceUtils.JSF_UNCOMPRESSED_JS_RESOURCE_NAME, true);
}
else
{
//normall we would have to take care about the standard jsf.js case also
//but our standard resource loader takes care of it,
// because this part is only called in debugging mode
//in production only in debugging
return new AliasResourceMetaImpl(prefix, libraryName, libraryVersion, resourceName, resourceVersion,
"jsf-uncompressed-full.js", false);
}
}
else if (_jsfMode.equals(ResourceUtils.JSF_MYFACES_JSFJS_MINIMAL) )
{
return new AliasResourceMetaImpl(prefix, libraryName, libraryVersion, resourceName, resourceVersion,
ResourceUtils.JSF_MINIMAL_JS_RESOURCE_NAME, false);
}
else if (_jsfMode.equals(ResourceUtils.JSF_MYFACES_JSFJS_MINIMAL_MODERN) )
{
return new AliasResourceMetaImpl(prefix, libraryName, libraryVersion, resourceName, resourceVersion,
ResourceUtils.JSF_MINIMAL_MODERN_JS_RESOURCE_NAME, false);
}
else
{
return null;
}
}
else if (javaxFacesLib && !_developmentStage && !_jsfMode.equals(ResourceUtils.JSF_MYFACES_JSFJS_NORMAL) &&
(ResourceUtils.JSF_MYFACES_JSFJS_I18N.equals(resourceName) ||
ResourceUtils.JSF_MYFACES_JSFJS_EXPERIMENTAL.equals(resourceName) ||
ResourceUtils.JSF_MYFACES_JSFJS_LEGACY.equals(resourceName)) )
{
return new ResourceMetaImpl(prefix, libraryName, libraryVersion, resourceName, resourceVersion);
}
else if (_developmentStage && libraryName != null &&
ResourceUtils.MYFACES_LIBRARY_NAME.equals(libraryName) &&
ResourceUtils.MYFACES_JS_RESOURCE_NAME.equals(resourceName))
{
//handle the oamSubmit.js
return new AliasResourceMetaImpl(prefix, libraryName, libraryVersion,
resourceName, resourceVersion, ResourceUtils.MYFACES_JS_RESOURCE_NAME_UNCOMPRESSED, true);
}
else if (_developmentStage && libraryName != null && libraryName.startsWith("org.apache.myfaces.core"))
{
return new ResourceMetaImpl(prefix, libraryName, libraryVersion, resourceName, resourceVersion);