Package org.apache.aries.samples.blog.api.persistence

Examples of org.apache.aries.samples.blog.api.persistence.BlogPersistenceService


    return id;
  }

  public Author getAuthor() {
    try {
      BlogPersistenceService bps = (BlogPersistenceService) new InitialContext().lookup(
          "osgi:service/" + BlogPersistenceService.class.getName());
      return bps.getAuthor(authorId);
    } catch (NamingException e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here


    }
  }

  public Entry getEntry() {
    try {
      BlogPersistenceService bps = (BlogPersistenceService) new InitialContext().lookup(
          "osgi:service/" + BlogPersistenceService.class.getName());
      return bps.getBlogEntryById(entryId);
    } catch (NamingException e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.aries.samples.blog.api.persistence.BlogPersistenceService

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.