/** * @param name the resource name * @param libraryName the library name * @param localePrefix the locale prefix * @param contracts the contracts * @return the {@link ResourceInfo} associated with <code>key<code> * if any. */ public ResourceInfo get(String name, String libraryName, String localePrefix, List<String> contracts) { Util.notNull("name", name); ResourceInfoCheckPeriodProxy proxy = resourceCache.get(name, libraryName, localePrefix, contracts); if (proxy != null && proxy.needsRefreshed()) { resourceCache.remove(name, libraryName, localePrefix, contracts); return null; } else { return ((proxy != null) ? proxy.getResourceInfo() : null); } }
/** * @param name the resource name * @param libraryName the library name * @param localePrefix the locale prefix * @param contracts the contracts * @return the {@link ResourceInfo} associated with <code>key<code> * if any. */ public ResourceInfo get(String name, String libraryName, String localePrefix, List<String> contracts) { Util.notNull("name", name); ResourceInfoCheckPeriodProxy proxy = resourceCache.get(name, libraryName, localePrefix, contracts); if (proxy != null && proxy.needsRefreshed()) { resourceCache.remove(name, libraryName, localePrefix, contracts); return null; } else { return ((proxy != null) ? proxy.getResourceInfo() : null); } }
/** * @param name the resource name * @param libraryName the library name * @param localePrefix the locale prefix * @param contracts the contracts * @return the {@link ResourceInfo} associated with <code>key<code> * if any. */ public ResourceInfo get(String name, String libraryName, String localePrefix, List<String> contracts) { Util.notNull("name", name); ResourceInfoCheckPeriodProxy proxy = resourceCache.get(name, libraryName, localePrefix, contracts); if (proxy != null && proxy.needsRefreshed()) { resourceCache.remove(name, libraryName, localePrefix, contracts); return null; } else { return ((proxy != null) ? proxy.getResourceInfo() : null); } }
/** * @param name the resource name * @param libraryName the library name * @param localePrefix the locale prefix * @param contracts the contracts * @return the {@link ResourceInfo} associated with <code>key<code> * if any. */ public ResourceInfo get(String name, String libraryName, String localePrefix, List<String> contracts) { Util.notNull("name", name); ResourceInfoCheckPeriodProxy proxy = resourceCache.get(name, libraryName, localePrefix, contracts); if (proxy != null && proxy.needsRefreshed()) { resourceCache.remove(name, libraryName, localePrefix, contracts); return null; } else { return ((proxy != null) ? proxy.getResourceInfo() : null); } }