@Test public void testLocationConfiguredWithResourceMappingLocationSwitch() { String expected = "some_location"; configure(resourceMappingLocation, expected); String location = PropertiesMappingConfiguration.getLocation(); assertEquals(expected, location); }
public String getLocation() { final FacesContext context = FacesContext.getCurrentInstance(); String location = (String) context.getAttributes().get(KEY); if (location == null) { ValueExpression mappingLocationExpression = ELUtils.createValueExpression(getLocationAsExpression()); location = mappingLocationExpression.getValue(FacesContext.getCurrentInstance().getELContext()).toString(); context.getAttributes().put(KEY, location); } return location; }
ResourceMappingConfiguration { public String getLocation() { final FacesContext context = FacesContext.getCurrentInstance(); String location = (String) context.getAttributes().get(KEY); if (location == null) { ValueExpression mappingLocationExpression = ELUtils.createValueExpression(getLocationAsExpression()); location = mappingLocationExpression.getValue(FacesContext.getCurrentInstance().getELContext()).toString(); context.getAttributes().put(KEY, location); } return location; } }
ResourceMappingConfiguration { public String getLocation() { final FacesContext context = FacesContext.getCurrentInstance(); String location = (String) context.getAttributes().get(KEY); if (location == null) { ValueExpression mappingLocationExpression = ELUtils.createValueExpression(getLocationAsExpression()); location = mappingLocationExpression.getValue(FacesContext.getCurrentInstance().getELContext()).toString(); context.getAttributes().put(KEY, location); } return location; } ResourceMappingConfiguration(); }
ResourceMappingConfiguration { public String getLocation() { final FacesContext context = FacesContext.getCurrentInstance(); String location = (String) context.getAttributes().get(KEY); if (location == null) { ValueExpression mappingLocationExpression = ELUtils.createValueExpression(getLocationAsExpression()); location = mappingLocationExpression.getValue(FacesContext.getCurrentInstance().getELContext()).toString(); context.getAttributes().put(KEY, location); } return location; } ResourceMappingConfiguration(); String getLocation(); }
ResourceMappingConfiguration { public String getLocation() { final FacesContext context = FacesContext.getCurrentInstance(); String location = (String) context.getAttributes().get(KEY); if (location == null) { ValueExpression mappingLocationExpression = ELUtils.createValueExpression(getLocationAsExpression()); location = mappingLocationExpression.getValue(FacesContext.getCurrentInstance().getELContext()).toString(); context.getAttributes().put(KEY, location); } return location; } ResourceMappingConfiguration(); String getLocation();  }