use of com.canoo.dp.impl.server.gc.Instance in project dolphin-platform by canoo.
the class AbstractDolphinBasedTest method createBeanManager.
protected BeanManager createBeanManager(ServerModelStore serverModelStore, BeanRepository beanRepository, EventDispatcher dispatcher) {
final Converters converters = new Converters(beanRepository);
final PresentationModelBuilderFactory builderFactory = new ServerPresentationModelBuilderFactory(serverModelStore);
final ClassRepository classRepository = new ClassRepositoryImpl(serverModelStore, converters, builderFactory);
final ListMapper listMapper = new ListMapperImpl(serverModelStore, classRepository, beanRepository, builderFactory, dispatcher);
final RemotingConfiguration configurationForGc = new RemotingConfiguration();
final GarbageCollector garbageCollector = new GarbageCollector(configurationForGc, new GarbageCollectionCallback() {
@Override
public void onReject(Set<Instance> instances) {
}
});
final BeanBuilder beanBuilder = new ServerBeanBuilderImpl(classRepository, beanRepository, listMapper, builderFactory, dispatcher, garbageCollector);
return new BeanManagerImpl(beanRepository, beanBuilder);
}
use of com.canoo.dp.impl.server.gc.Instance in project dolphin-platform by canoo.
the class AbstractDolphinBasedTest method createBeanManager.
protected BeanManager createBeanManager(ServerModelStore serverModelStore) {
final EventDispatcher dispatcher = new ServerEventDispatcher(serverModelStore);
final BeanRepositoryImpl beanRepository = new BeanRepositoryImpl(serverModelStore, dispatcher);
final Converters converters = new Converters(beanRepository);
final PresentationModelBuilderFactory builderFactory = new ServerPresentationModelBuilderFactory(serverModelStore);
final ClassRepository classRepository = new ClassRepositoryImpl(serverModelStore, converters, builderFactory);
final ListMapper listMapper = new ListMapperImpl(serverModelStore, classRepository, beanRepository, builderFactory, dispatcher);
final RemotingConfiguration configurationForGc = new RemotingConfiguration();
final GarbageCollector garbageCollector = new GarbageCollector(configurationForGc, new GarbageCollectionCallback() {
@Override
public void onReject(Set<Instance> instances) {
}
});
final BeanBuilder beanBuilder = new ServerBeanBuilderImpl(classRepository, beanRepository, listMapper, builderFactory, dispatcher, garbageCollector);
return new BeanManagerImpl(beanRepository, beanBuilder);
}
Aggregations