Breaker

Dependency Injection

….
@EJB OrangeJuiceManagerLocal ojml;
@EJB WaterManagerLocal wml;
….

private OrangeJuice getSomeOrangeJuice(){

List oranges = ojml.finAllOranges();
Water water = wml.findColdWater();

return mixOrangeToWater(oranges,water);
}

….

­čśë

merturk

Leave a Reply

Your email address will not be published. Required fields are marked *