Examples of IXmlRepository


Examples of com.subgraph.vega.api.xml.IXmlRepository

    return line.getMethod() +" "+ line.getUri();
  }
  private Document getAlertDocument(String name) {
    if(alertDocumentCache.containsKey(name))
      return alertDocumentCache.get(name);
    final IXmlRepository xmlRepository = Activator.getDefault().getXmlRepository();
    if(xmlRepository == null) {
      logger.warn("Could not render alert because xml repository service is not available");
      return null;
    }
   
    Document alertDocument = xmlRepository.getDocument("alerts/"+ name + ".xml");
    if(alertDocument == null)
      alertDocument = xmlRepository.getDocument("alerts/default.xml");
    if(alertDocument == null) {
      logger.warn("Could not load XML data for alert named '"+ name + "'");
      return null;
    }
    alertDocumentCache.put(name, alertDocument);
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.