]
Lukáš Fryč updated RF-13077:
----------------------------
Component/s: resource handling
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
Reporter: Lukáš Fryč
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: