org.apache.tiles.request.ApplicationResource Java Examples
The following examples show how to use
org.apache.tiles.request.ApplicationResource.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TilesConfigurer.java From spring-analysis-note with MIT License | 6 votes |
@Override protected List<ApplicationResource> getSources(ApplicationContext applicationContext) { if (definitions != null) { List<ApplicationResource> result = new LinkedList<>(); for (String definition : definitions) { Collection<ApplicationResource> resources = applicationContext.getResources(definition); if (resources != null) { result.addAll(resources); } } return result; } else { return super.getSources(applicationContext); } }
Example #2
Source File: TilesConfigurer.java From java-technology-stack with MIT License | 6 votes |
@Override protected List<ApplicationResource> getSources(ApplicationContext applicationContext) { if (definitions != null) { List<ApplicationResource> result = new LinkedList<>(); for (String definition : definitions) { Collection<ApplicationResource> resources = applicationContext.getResources(definition); if (resources != null) { result.addAll(resources); } } return result; } else { return super.getSources(applicationContext); } }
Example #3
Source File: TilesConfigurer.java From lams with GNU General Public License v2.0 | 6 votes |
@Override protected List<ApplicationResource> getSources(ApplicationContext applicationContext) { if (definitions != null) { List<ApplicationResource> result = new LinkedList<ApplicationResource>(); for (String definition : definitions) { Collection<ApplicationResource> resources = applicationContext.getResources(definition); if (resources != null) { result.addAll(resources); } } return result; } else { return super.getSources(applicationContext); } }
Example #4
Source File: TilesConfigurer.java From spring4-understanding with Apache License 2.0 | 6 votes |
@Override protected List<ApplicationResource> getSources(ApplicationContext applicationContext) { if (definitions != null) { List<ApplicationResource> result = new LinkedList<ApplicationResource>(); for (String definition : definitions) { Collection<ApplicationResource> resources = applicationContext.getResources(definition); if (resources != null) { result.addAll(resources); } } return result; } else { return super.getSources(applicationContext); } }
Example #5
Source File: SpringWildcardServletTilesApplicationContext.java From spring-analysis-note with MIT License | 5 votes |
@Override @Nullable public ApplicationResource getResource(String localePath) { Collection<ApplicationResource> urlSet = getResources(localePath); if (!CollectionUtils.isEmpty(urlSet)) { return urlSet.iterator().next(); } return null; }
Example #6
Source File: SpringWildcardServletTilesApplicationContext.java From spring-analysis-note with MIT License | 5 votes |
@Override @Nullable public ApplicationResource getResource(ApplicationResource base, Locale locale) { Collection<ApplicationResource> urlSet = getResources(base.getLocalePath(locale)); if (!CollectionUtils.isEmpty(urlSet)) { return urlSet.iterator().next(); } return null; }
Example #7
Source File: SpringWildcardServletTilesApplicationContext.java From java-technology-stack with MIT License | 5 votes |
@Override @Nullable public ApplicationResource getResource(String localePath) { Collection<ApplicationResource> urlSet = getResources(localePath); if (!CollectionUtils.isEmpty(urlSet)) { return urlSet.iterator().next(); } return null; }
Example #8
Source File: SpringWildcardServletTilesApplicationContext.java From java-technology-stack with MIT License | 5 votes |
@Override @Nullable public ApplicationResource getResource(ApplicationResource base, Locale locale) { Collection<ApplicationResource> urlSet = getResources(base.getLocalePath(locale)); if (!CollectionUtils.isEmpty(urlSet)) { return urlSet.iterator().next(); } return null; }
Example #9
Source File: SpringWildcardServletTilesApplicationContext.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public ApplicationResource getResource(String localePath) { Collection<ApplicationResource> urlSet = getResources(localePath); if (!CollectionUtils.isEmpty(urlSet)) { return urlSet.iterator().next(); } return null; }
Example #10
Source File: SpringWildcardServletTilesApplicationContext.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public ApplicationResource getResource(ApplicationResource base, Locale locale) { Collection<ApplicationResource> urlSet = getResources(base.getLocalePath(locale)); if (!CollectionUtils.isEmpty(urlSet)) { return urlSet.iterator().next(); } return null; }
Example #11
Source File: SpringWildcardServletTilesApplicationContext.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public ApplicationResource getResource(String localePath) { Collection<ApplicationResource> urlSet = getResources(localePath); if (!CollectionUtils.isEmpty(urlSet)) { return urlSet.iterator().next(); } return null; }
Example #12
Source File: SpringWildcardServletTilesApplicationContext.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public ApplicationResource getResource(ApplicationResource base, Locale locale) { Collection<ApplicationResource> urlSet = getResources(base.getLocalePath(locale)); if (!CollectionUtils.isEmpty(urlSet)) { return urlSet.iterator().next(); } return null; }