Package org.apache.oodt.cas.resource.queuerepo

Examples of org.apache.oodt.cas.resource.queuerepo.QueueRepositoryFactory


   *          {@link QueueRepository}s.
   * @return A new implementation of a {@link QueueRepository}.
   */
  public static QueueRepository getQueueRepositoryFromFactory(String queueRepositoryFactory) {
    Class clazz = null;
    QueueRepositoryFactory factory = null;

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


   *          {@link QueueRepository}s.
   * @return A new implementation of a {@link QueueRepository}.
   */
  public static QueueRepository getQueueRepositoryFromFactory(String queueRepositoryFactory) {
    Class clazz = null;
    QueueRepositoryFactory factory = null;

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

TOP

Related Classes of org.apache.oodt.cas.resource.queuerepo.QueueRepositoryFactory

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.