Package org.apache.shindig.social.opensocial.jpa.spi

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


  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

*/
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

    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

  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

*/
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

    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

*/
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

  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

Related Classes of org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

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.