Package org.wikier.trioo.jtrioo

Source Code of org.wikier.trioo.jtrioo.SessionEndpoint

package org.wikier.trioo.jtrioo;

import org.apache.log4j.Logger;
import org.wikier.trioo.jtrioo.rdf.sparql.QueryExecutor;
import org.wikier.trioo.jtrioo.rdf.sparql.QueryExecutorEndpoint;

public final class SessionEndpoint extends AbstractSession {
 
  private static final Logger logger = Logger.getLogger(SessionEndpoint.class);
  private static Session instance;
 
  private SessionEndpoint() {
    super();
  }

  public synchronized static Session getInstance() {
    if (instance == null) {
      instance = new SessionEndpoint();
    }
    return instance;
  }
 
  public void load(String uri) {
    logger.warn("Resource not necessary in this implementation? ignoring it....");
  }

  public QueryExecutor getQueryExecutor() {
    QueryExecutor qe = new QueryExecutorEndpoint();
    qe.setSession(this); //FIXME
    return qe;
  }

}
TOP

Related Classes of org.wikier.trioo.jtrioo.SessionEndpoint

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.