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, DisposableBean, InitializingBean

public class GlueXmlMessageLayout
extends GlueAbstractFixedLengthMessageLayout

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

 Bean Property
 
 - cacheManager : (Çʼö) applicationContext.xml ÀÇ Cache ManagerÀÇ bean id.
 
 - msgParsingType : (¼±ÅÃ) default´Â 'byte'
    Àû¿ë ¿ì¼±¼øÀ§
    1. msgParsingType bean propertyÀÇ °ª
    2. glue.properties ÀÇ msg.parsing.type ¿¡ ÇØ´çÇÏ´Â °ª
    3. default °ª
 
 - charset : (¼±ÅÃ) default´Â java.nio.charset.Charset.defaultCharset() °ªÀÓ.
 
 - msgParsingRule : (¼±ÅÃ)
 
 
 
 ¿¹Á¦
 »ç¿ë ¿¹# 1
 
     <bean id="layoutInXml" class="com.poscoict.glueframework.message.layout.GlueXmlMessageLayout">
         <property name="cacheManager" ref="cacheManager"/>
     </bean>
     <bean id="cacheManager" class=". . ."/>
 
 
 »ç¿ë ¿¹# 2
 
     <bean id="layoutInXml" class="com.poscoict.glueframework.message.layout.GlueXmlMessageLayout">
         <property name="cacheManager" ref="cacheManager"/>
         <property name="msgParsingType" value="byte"/>
     </bean>
     <bean id="cacheManager" class=". . ."/>
 
 
 »ç¿ë ¿¹# 3
 
     <bean id="layoutInXml" class="com.poscoict.glueframework.message.layout.GlueXmlMessageLayout">
         <property name="cacheManager" ref="cacheManager"/>
         <property name="msgParsingType" value="byte"/>
         <property name="msgParsingRule">
             <list>
                 <value>NULL_TO_ZERO_WHEN_TYPE_IS_NUMBER</value>
                 <value>ZERO_TO_SPACE_WHEN_TYPE_IS_STRING</value>
             </list>
         </property>
     </bean>
     <bean id="cacheManager" class=". . ."/>
 
 
 Âü°í : [MSGFW001]-service.xml
 
     <activity name="MessageParse" class="com.poscoict.glueframework.biz.activity.GlueMessageParse">
         <transition name="success" value="BizLogic" />
         <property name="layout" value="layoutInXml" />
     </activity>
 
 
 Âü°í : [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, RULE_NUMBER_NULL_TO_ZERO, RULE_STRING_ZERO_TO_SPACE
 
Constructor Summary
GlueXmlMessageLayout()
           
 
Method Summary
 GlueMessage createMessageObject(String tc)
           
 List<GlueMessageAttributeDefinition> getAttributesDefinition(String tcid)
           
 
Methods inherited from class com.poscoict.glueframework.message.layout.GlueAbstractFixedLengthMessageLayout
afterPropertiesSet, destroy, getAttributes, getCacheManager, getCharset, getMsgParsingRule, getMsgParsingType, makeMessageParsing, makeMessageString, setCacheManager, setCharset, setMsgParsingRule, 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


Copyright © 2013–2017 POSCO ICT. All rights reserved.