com.poscoict.glueframework.message.layout
Class GlueXmlMessageLayout

java.lang.Object
  extended by com.poscoict.glueframework.message.layout.GlueAbstractFixedLengthMessageLayout
      extended by com.poscoict.glueframework.message.layout.GlueXmlMessageLayout
All Implemented Interfaces:
GlueMessageLayout, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class GlueXmlMessageLayout
extends GlueAbstractFixedLengthMessageLayout
implements org.springframework.beans.factory.InitializingBean

Message¸¦ XML¿¡ Á¤ÀÇµÈ Layout¿¡ µû¶ó Create, Parsing½Ã »ç¿ëÇÒ¼ö ÀÖµµ·Ï ±¸ÇöµÈ Implement Class.

 bean property ¼³Á¤
 
 - cacheManager : (¼±ÅÃ) default ´Â 'cacheManager' ÀÓ.
   applicationContext.xml ÀÇ Cache ManagerÀÇ bean id°¡ 'cacheManager°¡ ¾Æ´Ò °æ¿ì »ç¿ëÇÑ´Ù.
 
  - msgParsingType : (¼±ÅÃ) default´Â 'byte'
    Àû¿ë ¿ì¼±¼øÀ§
    1. msgParsingType bean propertyÀÇ °ª
    2. glue.properties ÀÇ msg.parsing.type ¿¡ ÇØ´çÇÏ´Â °ª
    3. default °ª
 
 - charset : (¼±ÅÃ) default´Â java.nio.charset.Charset.defaultCharset() °ªÀÓ.
 
 
 
 applicationContext.xml
 <bean id="layoutInXml" class="com.poscoict.glueframework.message.layout.GlueXmlMessageLayout"/>
 
 service ÆÄÀÏ : [MSGFW001]-service.xml
 <activity name="MessageParse" class="com.poscoict.glueframework.biz.activity.GlueMessageParse">
     <transition name="success" value="BizLogic" />
     <property name="layout" value="layoutInXml" />
 </activity>
 
 layout ÆÄÀÏ : [MSGFW001]-msg.xml
 <?xml version="1.0" encoding="EUC-KR"?>
 <msgs>
     <msg id="MSGFW001" name="DEPT">
         <attribute type="E" seq="1" id="TRANSACTION_CODE" name="TransactionCode" datatype="STRING" length="8" precision="" />
         <attribute type="E" seq="2" id="CRUD" name="CRUD" datatype ="STRING" length="1" precision="" />
         <attribute type="E" seq="3" id="DEPTNO" name="ºÎ¼­¹øÈ£" datatype ="NUMBER" length="2" precision="0" />
         <attribute type="E" seq="4" id="DNAME" name="ºÎ¼­¸í" datatype ="STRING" length="14" precision="" />
         <attribute type="E" seq="5" id="LOC" name="ºÎ¼­À§Ä¡" datatype ="STRING" length="13" precision="" />
     </msg>
 </msgs>
 


Field Summary
static String MSG_FILE_NAME
           
 
Fields inherited from class com.poscoict.glueframework.message.layout.GlueAbstractFixedLengthMessageLayout
logger, MSG_TYPE_BYTE, MSG_TYPE_STRING
 
Constructor Summary
GlueXmlMessageLayout()
           
 
Method Summary
 void afterPropertiesSet()
           
 GlueMessage createMessageObject(String tc)
           
 List<GlueMessageAttributeDefinition> getAttributesDefinition(String tcid)
           
 
Methods inherited from class com.poscoict.glueframework.message.layout.GlueAbstractFixedLengthMessageLayout
destroy, getAttributes, getCacheManager, getCharset, getMsgParsingType, makeMessageParsing, makeMessageString, setCacheManager, setCharset, setMsgParsingType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_FILE_NAME

public static final String MSG_FILE_NAME
See Also:
Constant Field Values
Constructor Detail

GlueXmlMessageLayout

public GlueXmlMessageLayout()
Method Detail

getAttributesDefinition

public List<GlueMessageAttributeDefinition> getAttributesDefinition(String tcid)
                                                             throws GlueMessageDefinitionException
Specified by:
getAttributesDefinition in class GlueAbstractFixedLengthMessageLayout
Returns:
GlueMessageAttributeDefinition List
Throws:
GlueMessageDefinitionException

createMessageObject

public GlueMessage createMessageObject(String tc)
Specified by:
createMessageObject in class GlueAbstractFixedLengthMessageLayout
Returns:
GlueMessage

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2013–2014 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.