开发者

Wicket: What to keep in mind when making a (CDI-enabled) Page Serializable?

What do I need to keep in mind when making a Wicket Page Serializable?

I'm especially concerned about开发者_如何学Python CDI beans - is it okay to rely on seam-wicket to re-inject beans as necessary?

public class ChannelLogPage extends BaseLayoutPage implements Serializable {

    private static final Logger log = LoggerFactory.getLogger(ChannelLogPage.class);

    @Inject private ChannelManager channelManager;

    ...
}


It is part of the CDI spec to inject serializable proxy so you must be safe. Wicket does this for its Spring and Guice integrations but for CDI there is no such need.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜