|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.poscoict.glueframework.biz.control.GlueBizControllerImpl
public final class GlueBizControllerImpl
BizController ±¸Çöü.
GlueBizController´Â Web,Non Web App °øÅëÀ¸·Î »ç¿ëµÇ¸ç Transactionó¸® ¹× LoggingÀ» ó¸® ÇÏ°í ¼öÇà °á°ú´Â GlueContext ¿¡ ¹Ý¿µÇÑ´Ù.
¿¹Á¦»ç¿ë ¿¹# 1 GlueContext ctx = new GlueDefaultContext(); ctx.put("ServiceName", "sample-service"); GlueBizProvider.getController().doAction(ctx); Âü°í : applicationContext.xml
Method Summary | |
---|---|
GlueContext |
doAction(GlueContext ctx)
TransactionÀ» ó¸®¿Í LoggingÀ» ó¸® ÇÏ°í Service¸¦ ½ÇÇà ÇÑ´Ù. |
GlueContext |
doSubController(GlueContext ctx,
boolean newTx)
doAction()°ú µ¿ÀÏÇÏÁö¸¸ Transaction 󸮴 Á¤ÀÇ¿¡ µû¶ó ´Þ¶óÁø´Ù. |
static GlueBizController |
getController()
GlueBizController Instance¸¦ »ý¼º ÇÏ°í Return ÇÔ. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GlueBizController getController()
public GlueContext doAction(GlueContext ctx)
GlueBizController
À§ÀÇ Transaction List ¸¸Å Commit ¹× RollbackÀ» ¼öÇàÇÏ°í ¸¸ÀÏ commit="false"À̸é CommitÀ» ¼öÇàÇÏÁö ¾Ê´Â´Ù. commit="false" ¸¦ »ç¿ëÇÏ´Â °æ¿ì¿¡´Â Read Only °æ¿ì¿¡ »ç¿ëµÈ´Ù. ½ÇÁ¦ TransactionÀÇ Á¤ÀÇ´Â applicationContext.xml¿¡ ´ÙÀ½°ú °°ÀÌ Á¤ÀÇ µÈ´Ù.
doAction
in interface GlueBizController
ctx
- GlueContext
public GlueContext doSubController(GlueContext ctx, boolean newTx)
GlueBizController
Sub-service ¸¦ È£Ãâ ÇÏ´Â À§ ¿¹Á¦¿¡¼ " " ÀÎ °æ¿ì Main-service ÀÇ Transaction°ú º°°³·Î SubService¿¡ Á¤ÀǵǾî ÀÖ´Â TransactionÀ» ó¸®ÇÏ°Ô µÈ´Ù. "fale"À̸é Transaction 󸮸¦ ÇÏÁö ¾Ê´Â´Ù. Áï MainServiceÀÇ TransactionÀ» ÀÌ¿ëÇÏ°Ô µÈ´Ù.
doSubController
in interface GlueBizController
ctx
- GlueContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |