use of org.eclipse.scout.rt.platform.IBeanManager in project scout.rt by eclipse.
the class JobAsyncExceptionTest method unregisterTestBeans.
@After
public void unregisterTestBeans() {
IBeanManager manager = BEANS.getBeanManager();
for (IBean<?> bean : m_registeredBeans) {
manager.unregisterBean(bean);
}
BEANS.get(RunContextChainIntercepterRegistry.class).reindex();
}
use of org.eclipse.scout.rt.platform.IBeanManager in project scout.rt by eclipse.
the class RegisterTunnelToServerPlatformListener method stateChanged.
@Override
public void stateChanged(PlatformEvent event) {
if (event.getState() == IPlatform.State.BeanManagerPrepared) {
if (!isEnabled()) {
return;
}
// register all tunnels to server
final IBeanManager beanManager = event.getSource().getBeanManager();
final IClassInventory classInventory = ClassInventory.get();
registerTunnelToServerProxies(beanManager, classInventory);
}
}
use of org.eclipse.scout.rt.platform.IBeanManager in project scout.rt by eclipse.
the class NotificationDispatcherTest method after.
@After
public void after() {
TestingUtility.unregisterBeans(m_serviceReg);
// ensure bean hander cache of notification dispatcher gets refreshed
IBeanManager beanManager = BEANS.getBeanManager();
IBean<NotificationHandlerRegistry> bean = beanManager.getBean(NotificationHandlerRegistry.class);
beanManager.unregisterBean(bean);
beanManager.registerBean(new BeanMetaData(bean));
}
use of org.eclipse.scout.rt.platform.IBeanManager in project scout.rt by eclipse.
the class ClientRunContextWithInterceptorProducerTest method unregisterInterceptor.
@After
public void unregisterInterceptor() {
IBeanManager manager = BEANS.getBeanManager();
for (IBean<?> bean : m_registeredBeans) {
manager.unregisterBean(bean);
}
BEANS.get(RunContextChainIntercepterRegistry.class).reindex();
}
use of org.eclipse.scout.rt.platform.IBeanManager in project scout.rt by eclipse.
the class BinaryServiceTunnelContentHandlerTest method after.
@After
public void after() {
TestingUtility.unregisterBean(m_serviceReg);
IBeanManager beanManager = BEANS.getBeanManager();
// restore
for (IBean<?> bean : m_oldBeans) {
beanManager.registerBean(new BeanMetaData(bean));
}
}
Aggregations