Could someone help me explaining the different between Singleton vs. Application scope in Wirebox?
mapPath(“model.Customer”).into(this.SCOPES.SINGLETON);
mapPath(“model.Customer”).into(this.SCOPES.APPLICATION);
Let say I have a customer bean and service. The bean contains customer data and the service contains methods to manipulate the bean. Which scope I have to assign for the bean and service? Any example?
Thank you!