use of com.canoo.dp.impl.server.model.ServerEventDispatcher in project dolphin-platform by canoo.
the class ServerEventDispatcherTest method testLocalSystemIdentifier.
@Test
public void testLocalSystemIdentifier() {
// given:
ServerModelStore serverModelStore = new ServerModelStore();
ServerEventDispatcher dispatcher = new ServerEventDispatcher(serverModelStore);
// then:
assertEquals(dispatcher.getLocalSystemIdentifier(), RemotingConstants.SOURCE_SYSTEM_SERVER);
}
use of com.canoo.dp.impl.server.model.ServerEventDispatcher 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