|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GlueBizController
BizController ÀÎÅÍÆäÀ̽º.
GlueBizController´Â Web,Non Web App °øÅëÀ¸·Î »ç¿ëµÇ¸ç Transactionó¸® ¹× LoggingÀ» ó¸® ÇÏ°í ¼öÇà °á°ú´Â GlueContext¿¡ ¹Ý¿µÇÑ´Ù.
[sample java code]GlueContext ctx = new GlueDefaultContext(); ctx.put("ServiceName", "sample-service"); GlueBizController bizController = GlueBizProvider.getController(); bizController.doAction(ctx);
Method Summary | |
---|---|
GlueContext |
doAction(GlueContext ctx)
TransactionÀ» ó¸®¿Í LoggingÀ» ó¸® ÇÏ°í Service¸¦ ½ÇÇà ÇÑ´Ù. |
GlueContext |
doSubController(GlueContext ctx,
boolean newTx)
doAction()°ú µ¿ÀÏÇÏÁö¸¸ Transaction 󸮴 Á¤ÀÇ¿¡ µû¶ó ´Þ¶óÁø´Ù. |
Method Detail |
---|
GlueContext doAction(GlueContext ctx)
À§ÀÇ Transaction List ¸¸Å Commit ¹× RollbackÀ» ¼öÇàÇÏ°í ¸¸ÀÏ commit="false"À̸é CommitÀ» ¼öÇàÇÏÁö ¾Ê´Â´Ù. commit="false" ¸¦ »ç¿ëÇÏ´Â °æ¿ì¿¡´Â Read Only °æ¿ì¿¡ »ç¿ëµÈ´Ù. ½ÇÁ¦ TransactionÀÇ Á¤ÀÇ´Â applicationContext.xml¿¡ ´ÙÀ½°ú °°ÀÌ Á¤ÀÇ µÈ´Ù.
ctx
- GlueContext
GlueContext doSubController(GlueContext ctx, boolean newTx)
Sub-service ¸¦ È£Ãâ ÇÏ´Â À§ ¿¹Á¦¿¡¼ " " ÀÎ °æ¿ì Main-service ÀÇ Transaction°ú º°°³·Î SubService¿¡ Á¤ÀǵǾî ÀÖ´Â TransactionÀ» ó¸®ÇÏ°Ô µÈ´Ù. "fale"À̸é Transaction 󸮸¦ ÇÏÁö ¾Ê´Â´Ù. Áï MainServiceÀÇ TransactionÀ» ÀÌ¿ëÇÏ°Ô µÈ´Ù.
ctx
- GlueContextnewTx
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |