public String getNamespaceProperty(INamespace namespace, String propertyName) { return getSourceForNamespace(namespace).getPropertyValue(propertyName); }
public String getNamespaceProperty(INamespace namespace, String propertyName) { return getSourceForNamespace(namespace).getPropertyValue(propertyName); }
private LocalizedPropertySource getLocalizedSourceForNamespace(INamespace namespace) { Resource key = namespace.getSpecificationLocation(); LocalizedPropertySource result = (LocalizedPropertySource) _localizedNamespaceSources.get(key); if (result == null) { result = new LocalizedPropertySource(getSourceForNamespace(namespace)); _localizedNamespaceSources.put(key, result); } return result; }
private LocalizedPropertySource getLocalizedSourceForNamespace(INamespace namespace) { Resource key = namespace.getSpecificationLocation(); LocalizedPropertySource result = (LocalizedPropertySource) _localizedNamespaceSources.get(key); if (result == null) { result = new LocalizedPropertySource(getSourceForNamespace(namespace)); _localizedNamespaceSources.put(key, result); } return result; }
private IPropertySource createSourceForComponent(IComponent component) { IComponentSpecification specification = component.getSpecification(); List sources = new ArrayList(); sources.add(new PropertyHolderPropertySource(specification)); sources.add(getSourceForNamespace(component.getNamespace())); return (IPropertySource) _chainBuilder.buildImplementation( IPropertySource.class, sources, ImplMessages.componentPropertySourceDescription(specification)); }
private IPropertySource createSourceForComponent(IComponent component) { IComponentSpecification specification = component.getSpecification(); List sources = new ArrayList(); sources.add(new PropertyHolderPropertySource(specification)); sources.add(getSourceForNamespace(component.getNamespace())); return (IPropertySource) _chainBuilder.buildImplementation( IPropertySource.class, sources, ImplMessages.componentPropertySourceDescription(specification)); }