Seam @Factory 의 활용

@In(value=”apple”, create=true) private Fruit appleStore; @In(value=”banana”, create=true) private Fruit bananaStore; @Factory( value=”apple”) public Fruit createAppleStore() { Fruit fruit = new Fruit(); fruit.setProduct(“사과”); return fruit; } @Factory( value=”banana”) public Fruit createBananaStore() { Fruit fruit = new Fruit(); fruit.setProduct(“바나나”); return fruit; } ]]>

Related Posts