开发者

What does beanInterface refer here?

开发者 https://www.devze.com 2023-02-01 19:08 出处:网络
public class SpringHelloWorld extends com.itmill.toolkit.Application { public void init() { final Window main = new Window(\"Hello window\");
public class SpringHelloWorld extends com.itmill.toolkit.Application {

    public void init() {
        final Window main = new Window("Hello window");
        setMainWindow(main);

        SpringContextHelper helper = new SpringContextHelper(this);
        MyBeanInterface bean = (MyBeanInterface) 
           开发者_JAVA技巧     helper.getBean("myBean");
        main.addComponent(new Label( bean.myMethod() ));
    }
}

http://qastegiano.blogspot.com/2008/01/itmill-toolkit-5-spring.html

Is it a custom class or we should define something out there.


You've got to define something out there. It's an example of how to get a bean out of the bean factory; substitute a useful class of your own.

0

精彩评论

暂无评论...
验证码 换一张
取 消