[richfaces-issues] [JBoss JIRA] (RF-13077) Allow programatically configure Resource Mapping by exposing a service interface

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Thu Jul 4 03:37:20 EDT 2013


Lukáš Fryč created RF-13077:
-------------------------------

             Summary: 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)
            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: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list