Search in sources :

Example 1 with SimpleBeanDecorationFactory

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

the class PlatformImplementor method initBeanDecorationFactory.

protected void initBeanDecorationFactory() {
    if (m_beanManager.getBeanDecorationFactory() != null) {
        return;
    }
    IBean<IBeanDecorationFactory> bean = m_beanManager.optBean(IBeanDecorationFactory.class);
    if (bean != null) {
        m_beanManager.setBeanDecorationFactory(bean.getInstance());
        return;
    }
    LOG.warn("Using {}. Please verify that this application really has no client or server side {}", SimpleBeanDecorationFactory.class.getName(), IBeanDecorationFactory.class.getSimpleName());
    m_beanManager.setBeanDecorationFactory(new SimpleBeanDecorationFactory());
}
Also used : IBeanDecorationFactory(org.eclipse.scout.rt.platform.IBeanDecorationFactory) SimpleBeanDecorationFactory(org.eclipse.scout.rt.platform.SimpleBeanDecorationFactory)

Aggregations

IBeanDecorationFactory (org.eclipse.scout.rt.platform.IBeanDecorationFactory)1 SimpleBeanDecorationFactory (org.eclipse.scout.rt.platform.SimpleBeanDecorationFactory)1