]
Brian Leathem updated RF-13077:
-------------------------------
Sprint: 5.0.0.Alpha2 - Sprint 1
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č
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: