[richfaces-issues] [JBoss JIRA] (RF-13077) Allow programatically configure Resource Mapping by exposing a service interface
Juraj Húska (JIRA)
jira-events at lists.jboss.org
Fri Dec 6 11:16:06 EST 2013
[ https://issues.jboss.org/browse/RF-13077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juraj Húska closed RF-13077.
----------------------------
Verified. Closing.
> Allow programatically configure Resource Mapping by exposing a service interface
> --------------------------------------------------------------------------------
>
> Key: RF-13077
> URL: https://issues.jboss.org/browse/RF-13077
> Project: RichFaces
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: resource handling
> Affects Versions: 5.0.0.Alpha2
> Reporter: Lukáš Fryč
> Assignee: Lukáš Fryč
> Fix For: 5.0.0.Alpha2
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> A concept of a service should allow to programatically provide a mapped URL for a resource, either local one (JSF resource) or remote (on static server, CDN, etc.).
> {code:java}
> public interface ResourceMapper {
> /**
> * @return null when no mapping should be involved
> public ResourceMapping mapResource(ResourceKey key);
> }
> public interface ResourceMapping {
> URL getURL(FacesContext context);
> }
> public interface StaticURLResourceMapping implements ResourceMapping {
> URL getURL();
> }
> public class FacesResourceMapping implements ResourceMapping {
> public ResourceKey getResourceKey() {
> ...
> }
> }
> {code}
> This way people may decide e.g. move all resources from given resource library to another library.
> This is related to RF-11543.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list