[
https://issues.jboss.org/browse/RF-13077?page=com.atlassian.jira.plugin.s...
]
Lukáš Fryč edited comment on RF-13077 at 9/2/13 3:05 AM:
---------------------------------------------------------
After brain-storming, we have decided to use one RichFaces internal service which will
delegate to multiple user-defined services loaded by ServiceLoader.
was (Author: lfryc):
After brain-storming, we have decided to use one RichFaces internal service which will
delegate to multiple services loaded by ServiceLoader.
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