Package org.tuba.plugins

Examples of org.tuba.plugins.IArtefactProvider


    return representation;
  }

  private IArtefactRepresentation getArtefactFromProvider(
      XMLProvider provider) {
    IArtefactProvider providerInstance = PluginManager.getInstance()
        .instantiateProvider(provider.getId());
    if (providerInstance == null)
      return null;
    return providerInstance.getArtefact(provider.getArtefact());
  }
View Full Code Here


  }

  public IArtefactProvider instantiateProvider(MetaProvider provider) {
    if (provider == null)
      return null;
    IArtefactProvider runningInstance = providerInstances.get(provider
        .getId());
    if (runningInstance != null)
      return runningInstance;

    Object providerObj = instantiate(
View Full Code Here

  }

  private IArtefactProvider registerProvider(String id, Object providerObj) {
    if (!(providerObj instanceof IArtefactProvider))
      return null;
    IArtefactProvider newInstance = (IArtefactProvider) providerObj;
    providerInstances.put(id, newInstance);
    return newInstance;
  }
View Full Code Here

    providerInstances.put(id, newInstance);
    return newInstance;
  }

  public IArtefactProvider instantiateProvider(String providerID) {
    IArtefactProvider runningInstance = providerInstances.get(providerID);
    if (runningInstance != null)
      return runningInstance;

    Object providerObj = instantiate(providerID, IArtefactProvider.POINT_ID);
    return registerProvider(providerID, providerObj);
View Full Code Here

TOP

Related Classes of org.tuba.plugins.IArtefactProvider

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.