Skip to content

Instantly share code, notes, and snippets.

@ricston-git
Created July 27, 2015 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricston-git/599a15370b36ca251edb to your computer and use it in GitHub Desktop.
Save ricston-git/599a15370b36ca251edb to your computer and use it in GitHub Desktop.
<security-manager>
<password-encryption-strategy name="peoticPasswordEncryption" password="poetic" />
</security-manager>
<custom-transformer name="nodeEncryptTransformer" class="com.ricston.transformers.NodeEncryptTransformer" >
<spring:property name="encryptionStrategy" ref="poeticPasswordEncryption" />
</custom-transformer>
<flow name="Processor">
<inbound-endpoint ref="processor" exchange-pattern="one-way" />
<choice>
<when evaluator="xpath" expression="/person/name='Barack'">
<transformer ref="nodeEncryptTransformer"/>
</when>
<otherwise>
<log-component />
</otherwise>
</choice>
<transformer ref="domToXmlTransformer"/>
<outbound-endpoint ref="aggregator" exchange-pattern="one-way" />
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment