Created
August 1, 2013 18:14
-
-
Save artembilan/6133806 to your computer and use it in GitHub Desktop.
SI + SRP Cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans:beans xmlns="http://www.springframework.org/schema/integration" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:beans="http://www.springframework.org/schema/beans" | |
xmlns:cache="http://www.springframework.org/schema/cache" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.springframework.org/schema/integration | |
http://www.springframework.org/schema/integration/spring-integration.xsd | |
http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd"> | |
<channel id="input"/> | |
<channel id="output"> | |
<queue capacity="50"/> | |
</channel> | |
<transformer input-channel="input" ref="testBean" method="upperCase" output-channel="output"> | |
<request-handler-advice-chain> | |
<cache:advice> | |
<cache:caching cache="foo"> | |
<cache:cacheable method="handle*Message" key="#a0.payload"/> | |
</cache:caching> | |
</cache:advice> | |
<beans:bean class="org.springframework.integration.transformer.TransformerContextTests$FooAdvice" /> | |
</request-handler-advice-chain> | |
</transformer> | |
<beans:bean id="testBean" class="org.springframework.integration.transformer.TestBean"/> | |
<beans:bean id="cacheManager" class="org.springframework.cache.concurrent.ConcurrentMapCacheManager"/> | |
</beans:beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment