Package org.tuba.repository.provider

Examples of org.tuba.repository.provider.IDynamicProvider


    for (IConfigurationElement element : getPlugins(POINT_ID)) {
      String name = element.getName();
      IProvider provider = null;
      if(DYNAMIC_PROVIDER_NAME.equals(name)){
        String repoID =  element.getAttribute(PROVIDER_ID);
        IDynamicProvider dynamicProvider = initDynamicProvider(element, repoID);
        provider = dynamicProvider;
      } else if(STATIC_PROVIDER_NAME.equals(name)){
        String fileExtension = element.getAttribute(FILE_EXTENSION);
        String repositoryID = element.getAttribute(PROVIDER_ID);
        provider = new Provider(fileExtension, repositoryID);
View Full Code Here


   * @param configElement the configuration Element containing the fully qualified name of an {@link IDynamicProvider} implementing class.
   * @param repoID the repositoryID connected to the proider
   * @return an instance of the given provider
   */
  private static IDynamicProvider initDynamicProvider(IConfigurationElement configElement, String repoID){
    IDynamicProvider dynamicProvider = null;
    try {
      dynamicProvider = (IDynamicProvider)configElement.createExecutableExtension(VALIDATION_HANDLER);
      dynamicProvider.setRepositoryID(repoID);
    } catch (CoreException e) {
      e.printStackTrace();
    }
    return dynamicProvider;
  }
View Full Code Here

TOP

Related Classes of org.tuba.repository.provider.IDynamicProvider

Copyright © 2018 www.massapicom. 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.