if (TempDirFileCacheResourceLoader.isValidCreateTemporalFiles(facesContext))
{
_contractResourceLoaders= new ContractResourceLoader[] {
new TempDirFileCacheContractResourceLoader(
new ExternalContextContractResourceLoader("/"+directory)),
new TempDirFileCacheContractResourceLoader(
new ClassLoaderContractResourceLoader(META_INF_CONTRACTS))
};
}
else
{
_contractResourceLoaders= new ContractResourceLoader[] {
new ExternalContextContractResourceLoader("/"+directory),
new ClassLoaderContractResourceLoader(META_INF_CONTRACTS)
};
}
}
return _contractResourceLoaders;