#710 Change STAX to import the STAFUtil class automatically

closed-fixed
5
2012-03-20
2012-03-20
No

For usability reasons, change the STAX service to automatically import Java class com.ibm.staf.STAFUtil (which provides general use APIs for STAF) automatically for all STAX jobs so that a STAX job no longer neede to include the following line in a STAX job before using methods provided by the STAFUtil class such as wrapData(), addPrivacyDelimiters(), etc:

<script>
from com.ibm.com import STAFUtil
</script>

Discussion

  • Sharon Lucas

    Sharon Lucas - 2012-03-20
    • status: open --> closed-fixed
     
  • Sharon Lucas

    Sharon Lucas - 2012-03-20

    This feature will be in STAX V3.5.3 planned to be released at the end of March 2012.

    Here's a cvs diff of the changes:

    Index: services/stax/service/STAXThread.java

    RCS file: /cvsroot/staf/src/staf/services/stax/service/STAXThread.java,v
    retrieving revision 1.51
    diff -r1.51 STAXThread.java
    122a123
    > "from com.ibm.staf import STAFUtil\n" +
    Index: services/stax/docs/userguide/staxug.html
    ===================================================================
    RCS file: /cvsroot/staf/src/staf/services/stax/docs/userguide/staxug.html,v
    retrieving revision 1.264
    diff -r1.264 staxug.html
    24c24
    < <p><b>December 8, 2011</b>
    ---
    > <p><b>March 20, 2012</b>
    906,907c906
    < Notify request. Note that the Java class STAFUtil needs to be imported in order to use its
    < wrapData() method. For more information on the STAFUtil Java class, see the
    ---
    > Notify request. For more information on the STAFUtil Java class, see the
    917,919d915
    <
    < from com.ibm.staf import STAFUtil
    <
    921c917
    < (STAFUtil.wrapData(NotifyProfile), STAFUtil.wrapData(Message)))
    ---
    > (<b>STAFUtil.wrapData(NotifyProfile)</b>, <b?STAFUtil.wrapData(Message)</b>))
    1651d1646
    < from com.ibm.staf import STAFUtil
    1685d1679
    < from com.ibm.staf import STAFUtil
    1897,1898c1891
    < the Email service. Java class STAFUtil needs to be imported from com.ibm.staf
    < in order to use its wrapData() method. For more information on the STAFUtil Java class,
    ---
    > the Email service. For more information on the STAFUtil Java class,
    1905,1906d1897
    < from com.ibm.staf import STAFUtil
    <
    17248c17239,17241
    < for STAF. Static methods that are provided by the STAFUtil class include the
    ---
    > for STAF. This Java class is automatically imported by the STAX service (starting
    > in STAX V3.5.3) so that you do not need to import this class in your STAX job.
    > Static methods that are provided by the STAFUtil class include the
    17260,17261d17252
    < <b>from com.ibm.staf import STAFUtil</b>
    <
    17279,17280d17269
    < Note that you must import the <b>com.ibm.staf.STAFUtil</b> class before you can use it.
    < <p>
    17292,17293d17280
    < <b>from com.ibm.staf import STAFUtil</b>
    <
    17365c17352
    < <b>com.ibm.staf.STAFUtil</b> class, but also imports other Java classes such as
    ---
    > <b>com.ibm.staf.STAFVersion</b> class, but also imports other Java classes such as
    Index: services/stax/libraries/STAFUpgradeUtil.xml
    ===================================================================
    RCS file: /cvsroot/staf/src/staf/services/stax/libraries/STAFUpgradeUtil.xml,v
    retrieving revision 1.26
    diff -r1.26 STAFUpgradeUtil.xml
    206,207d205
    < from com.ibm.staf import STAFUtil
    <
    4905c4903
    < </stax>
    \ No newline at end of file
    ---
    > </stax>
    Index: services/stax/libraries/STAXUtil.xml
    ===================================================================
    RCS file: /cvsroot/staf/src/staf/services/stax/libraries/STAXUtil.xml,v
    retrieving revision 1.17
    diff -r1.17 STAXUtil.xml
    1074c1074
    < <function-required-arg name="directory">
    ---
    > <function-required-arg name="directory">
    1795d1794
    < from com.ibm.staf import STAFUtil

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks