Class GlueXmlMessageLayout
java.lang.Object
com.poscoict.glueframework.message.layout.GlueAbstractFixedLengthMessageLayout
com.poscoict.glueframework.message.layout.GlueXmlMessageLayout
- All Implemented Interfaces:
 GlueMessageLayout,DisposableBean,InitializingBean
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
FieldsFields 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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class com.poscoict.glueframework.message.layout.GlueAbstractFixedLengthMessageLayout
afterPropertiesSet, destroy, getAttributes, getCacheManager, getCharset, getMsgParsingRule, getMsgParsingType, makeMessageParsing, makeMessageString, setCacheManager, setCharset, setMsgParsingRule, setMsgParsingType 
- 
Field Details
- 
MSG_FILE_NAME
- See Also:
 
 
 - 
 - 
Constructor Details
- 
GlueXmlMessageLayout
public GlueXmlMessageLayout() 
 - 
 - 
Method Details
- 
getAttributesDefinition
public List<GlueMessageAttributeDefinition> getAttributesDefinition(String tcid) throws GlueMessageDefinitionException - Specified by:
 getAttributesDefinitionin classGlueAbstractFixedLengthMessageLayout- Parameters:
 tcid-- Returns:
 - GlueMessageAttributeDefinition List
 - Throws:
 GlueMessageDefinitionException
 - 
createMessageObject
- Specified by:
 createMessageObjectin classGlueAbstractFixedLengthMessageLayout- Returns:
 - GlueMessage
 
 
 -