I am new to Spring.
This is the code for bean registration:
Perhaps letting the User_Imple
be an ordinary Pojo (instead of a Spring bean) will solve your problem?
Java:
public static void main(String arg[])
{
ApplicationContext context =new ClassPathXmlApplicationContext("/bean.xml");
User user = context.getBean(User.class);
int id = // dynamic id
Master_interface master = new User_Imple(id, user);
}