Package loci.common.services

Examples of loci.common.services.ServiceFactory


    Location mdb = new Location(mdbFile).getAbsoluteFile();
    Location parent = mdb.getParentFile();

    MDBService mdbService = null;
    try {
      ServiceFactory factory = new ServiceFactory();
      mdbService = factory.getInstance(MDBService.class);
    }
    catch (DependencyException de) {
      throw new FormatException("MDB Tools Java library not found", de);
    }
View Full Code Here


   * @throws ParserConfigurationException
   * @throws DependencyException
   * @throws ServiceException
   */
  public void setXMLDocument(String omexml) throws ParserConfigurationException, SAXException, IOException, DependencyException, ServiceException {
    OMEXMLService svc = new ServiceFactory().getInstance(OMEXMLService.class);
    OMEModelObject root = svc.createOMEXMLRoot(omexml);
    if (! (root instanceof OME))
      throw new ServiceException("Root of XML document wasn't OME");
    this.omexml = (OME)root;
  }
View Full Code Here

TOP

Related Classes of loci.common.services.ServiceFactory

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.