Examples of AlbumEntryDatabaseImpl


Examples of com.linkedin.restli.example.impl.AlbumEntryDatabaseImpl

  {
    Map<String, Object> beans = new HashMap<String, Object>();
    final PhotoDatabase photoDb = new PhotoDatabaseImpl(10);
    beans.put("photoDb", photoDb);
    beans.put("albumDb", new AlbumDatabaseImpl(5));
    beans.put("albumEntryDb", new AlbumEntryDatabaseImpl(photoDb, 5));
    return beans;
  }
View Full Code Here

Examples of com.linkedin.restli.example.impl.AlbumEntryDatabaseImpl

    // demonstrate dynamic dependency injection
    final PhotoDatabase photoDb = new PhotoDatabaseImpl(10);
    final SimpleBeanProvider beanProvider = new SimpleBeanProvider();
    beanProvider.add("photoDb", photoDb);
    beanProvider.add("albumDb", new AlbumDatabaseImpl(10));
    beanProvider.add("albumEntryDb", new AlbumEntryDatabaseImpl(photoDb, 3));

    // using InjectMockResourceFactory to keep examples spring-free
    final ResourceFactory factory = new InjectMockResourceFactory(beanProvider);

    final TransportDispatcher dispatcher = new DelegatingTransportDispatcher(new RestLiServer(config, factory));
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.