Package org.apache.oodt.cas.resource.noderepo

Examples of org.apache.oodt.cas.resource.noderepo.NodeRepositoryFactory


   *          {@link QueueRepository}s.
   * @return A new implementation of a {@link NodeRepository}.
   */
  public static NodeRepository getNodeRepositoryFromFactory(String nodeRepositoryFactory) {
    Class clazz = null;
    NodeRepositoryFactory factory = null;

    try {
      clazz = Class.forName(nodeRepositoryFactory);
      factory = (NodeRepositoryFactory) clazz.newInstance();
      return factory.createNodeRepository();
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      LOG.log(Level.WARNING,
          "ClassNotFoundException when loading node repository factory class "
              + nodeRepositoryFactory + " Message: " + e.getMessage());
View Full Code Here


   *          {@link QueueRepository}s.
   * @return A new implementation of a {@link NodeRepository}.
   */
  public static NodeRepository getNodeRepositoryFromFactory(String nodeRepositoryFactory) {
    Class clazz = null;
    NodeRepositoryFactory factory = null;

    try {
      clazz = Class.forName(nodeRepositoryFactory);
      factory = (NodeRepositoryFactory) clazz.newInstance();
      return factory.createNodeRepository();
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      LOG.log(Level.WARNING,
          "ClassNotFoundException when loading node repository factory class "
              + nodeRepositoryFactory + " Message: " + e.getMessage());
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.resource.noderepo.NodeRepositoryFactory

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.