Examples of IModelElementProvider


Examples of org.springframework.ide.eclipse.beans.core.namespaces.IModelElementProvider

   * Registers the given component definition with this {@link BeansConfig}'s beans and component storage.
   */
  private void registerComponentDefinition(ComponentDefinition componentDefinition,
      Map<String, IModelElementProvider> elementProviders) {
    String uri = NamespaceUtils.getNameSpaceURI(componentDefinition);
    IModelElementProvider provider = elementProviders.get(uri);
    if (provider == null) {
      provider = DEFAULT_ELEMENT_PROVIDER;
    }
    ISourceModelElement element = provider.getElement(BeansConfig.this, componentDefinition);
    if (element instanceof IBean) {
      beans.put(element.getElementName(), (IBean) element);
    }
    else if (element instanceof IBeansComponent) {
      components.add((IBeansComponent) element);
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.core.namespaces.IModelElementProvider

          importedBeansConfig.setDefaults(defaultDefinitionsCache.get(importedResource));
          Set<ComponentDefinition> componentDefinitions = componentDefinitionsCache.get(importedResource);
          if (componentDefinitions != null) {
            for (ComponentDefinition componentDefinition : componentDefinitions) {
              String uri = NamespaceUtils.getNameSpaceURI(componentDefinition);
              IModelElementProvider provider = elementProviders.get(uri);
              if (provider == null) {
                provider = DEFAULT_ELEMENT_PROVIDER;
              }
              ISourceModelElement element = provider.getElement(importedBeansConfig, componentDefinition);
              if (element instanceof IBean) {
                importedBeansConfig.addBean((IBean) element);
              }
              else if (element instanceof IBeansComponent) {
                importedBeansConfig.addComponent((IBeansComponent) element);
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.core.namespaces.IModelElementProvider

   * Registers the given component definition with this {@link BeansConfig}'s beans and component storage.
   */
  private void registerComponentDefinition(ComponentDefinition componentDefinition,
      Map<String, IModelElementProvider> elementProviders) {
    String uri = NamespaceUtils.getNameSpaceURI(componentDefinition);
    IModelElementProvider provider = elementProviders.get(uri);
    if (provider == null) {
      provider = BeansConfig.DEFAULT_ELEMENT_PROVIDER;
    }
    ISourceModelElement element = provider.getElement(BeansJavaConfig.this, componentDefinition);
    if (element instanceof IBean) {
      beans.put(element.getElementName(), (IBean) element);
    }
    else if (element instanceof IBeansComponent) {
      components.add((IBeansComponent) element);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.