Search in sources :

Example 11 with IBeanManager

use of org.eclipse.scout.rt.platform.IBeanManager in project scout.rt by eclipse.

the class RegisterBeanStatement method evaluate.

@Override
public void evaluate() throws Throwable {
    final IBeanManager beanManager = Platform.get().getBeanManager();
    final IBean bean = beanManager.registerBean(m_beanMetaData);
    try {
        m_next.evaluate();
    } finally {
        beanManager.unregisterBean(bean);
    }
}
Also used : IBeanManager(org.eclipse.scout.rt.platform.IBeanManager) IBean(org.eclipse.scout.rt.platform.IBean)

Aggregations

IBeanManager (org.eclipse.scout.rt.platform.IBeanManager)11 BeanMetaData (org.eclipse.scout.rt.platform.BeanMetaData)6 After (org.junit.After)6 RunContextChainIntercepterRegistry (org.eclipse.scout.rt.platform.context.RunContextChainIntercepterRegistry)2 NotificationHandlerRegistry (org.eclipse.scout.rt.shared.notification.NotificationHandlerRegistry)2 IBean (org.eclipse.scout.rt.platform.IBean)1 IClassInventory (org.eclipse.scout.rt.platform.inventory.IClassInventory)1 Before (org.junit.Before)1