Examples of JPASocialModule


Examples of org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

  protected void configure() {
    install(new PropertiesModule());
    install(new DefaultGuiceModule());
    install(new SocialApiGuiceModule());
    install(new OAuthModule());
    install(new JPASocialModule(entityManager));

    this.bind(OAuthDataStore.class).toInstance(new NullOAuthDataStore());

    // Entities
    this.bind(Activity.class).to(ActivityDb.class);
View Full Code Here

Examples of org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

  private BeanJsonConverter jsonConverter;
  private EntityManager entityManager;

  @Before
  public void setup() {
    Injector injector = Guice.createInjector(new JPASocialModule());
    this.jsonConverter = injector.getInstance(BeanJsonConverter.class);

    Bootstrap b = new Bootstrap();
    this.entityManager = b.getEntityManager("hibernate");
  }
View Full Code Here

Examples of org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

*/
public class JPASocialModuleTest {

  @Test
  public void bootstrap() {
    Injector injector = Guice.createInjector(new JPASocialModule());
    @SuppressWarnings("unused")
    PersonService personService = injector.getInstance(PersonService.class);
    @SuppressWarnings("unused")
    ActivityService activityService = injector
        .getInstance(ActivityService.class);
View Full Code Here

Examples of org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

    install(new OAuth2Module());
    install(new OAuth2PersistenceModule());
    install(new OAuth2MessageModule());
    install(new OAuth2HandlerModule());

    install(new JPASocialModule(entityManager));

    this.bind(OAuthDataStore.class).toInstance(new NullOAuthDataStore());
    bind(OAuth2Service.class).to(OAuth2ServiceImpl.class);
    bind(OAuth2DataService.class).to(OAuth2DataServiceImpl.class);
    // Entities
View Full Code Here

Examples of org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

  private BeanJsonConverter jsonConverter;
  private EntityManager entityManager;

  @Before
  public void setup() {
    Injector injector = Guice.createInjector(new JPASocialModule());
    this.jsonConverter = injector.getInstance(BeanJsonConverter.class);

    Bootstrap b = new Bootstrap();
    this.entityManager = b.getEntityManager("hibernate");
  }
View Full Code Here

Examples of org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

*/
public class JPASocialModuleTest {

  @Test
  public void bootstrap() {
    Injector injector = Guice.createInjector(new JPASocialModule());
    @SuppressWarnings("unused")
    PersonService personService = injector.getInstance(PersonService.class);
    @SuppressWarnings("unused")
    ActivityService activityService = injector
        .getInstance(ActivityService.class);
View Full Code Here

Examples of org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

    install(new OAuth2Module());
    install(new OAuth2PersistenceModule());
    install(new OAuth2MessageModule());
    install(new OAuth2HandlerModule());

    install(new JPASocialModule(entityManager));

    this.bind(OAuthDataStore.class).toInstance(new NullOAuthDataStore());
    bind(OAuth2Service.class).to(OAuth2ServiceImpl.class);
    bind(OAuth2DataService.class).to(OAuth2DataServiceImpl.class);
    // Entities
View Full Code Here

Examples of org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

*/
public class JPASocialModuleTest {

  @Test
  public void bootstrap() {
    Injector injector = Guice.createInjector(new JPASocialModule());
    @SuppressWarnings("unused")
    PersonService personService = injector.getInstance(PersonService.class);
    @SuppressWarnings("unused")
    ActivityService activityService = injector
        .getInstance(ActivityService.class);
View Full Code Here

Examples of org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

  protected void configure() {
    install(new PropertiesModule());
    install(new DefaultGuiceModule());
    install(new SocialApiGuiceModule());
    install(new OAuthModule());
    install(new JPASocialModule(entityManager));

    this.bind(OAuthDataStore.class).toInstance(new NullOAuthDataStore());

    // Entities
    this.bind(Activity.class).to(ActivityDb.class);
View Full Code Here
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.