package com.commafeed.frontend;

import javax.inject.Inject;

import org.apache.wicket.Component;

import com.commafeed.backend.dao.UserRoleDAO;
import com.commafeed.backend.services.UserService;

// extend Component in order to benefit from injection 
public class CommaFeedSessionServices extends Component {

	@Inject
	UserService userService;

	@Inject
	UserRoleDAO userRoleDAO;

	public CommaFeedSessionServices() {
		super("services");
	}

	public UserService getUserService() {
		return userService;
	}

	public UserRoleDAO getUserRoleDAO() {
		return userRoleDAO;
	}

	@Override
	protected void onRender() {
		// do nothing
	}
}

@@ -313,24 +313,77 @@
 ponent %7B%0D%0A%0D%0A
+%09private static final long serialVersionUID = 1L;%0D%0A%0D%0A
 %09@Inject%0D%0A%09U

set serialid