com.parthparekh.service
Class TestServiceConfiguration

java.lang.Object
  extended by com.parthparekh.service.TestServiceConfiguration

@Configuration
public class TestServiceConfiguration
extends java.lang.Object

Configuration class for Tests


Field Summary
private  net.sf.ehcache.CacheManager cacheManager
           
private  java.lang.String cacheType
           
 
Constructor Summary
TestServiceConfiguration()
           
 
Method Summary
 Cache getCache()
           
 org.codehaus.jackson.map.ObjectMapper getObjectMapper()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cacheType

@Value(value="${cache.type:ehcache}")
private java.lang.String cacheType

cacheManager

@Autowired
private net.sf.ehcache.CacheManager cacheManager
Constructor Detail

TestServiceConfiguration

public TestServiceConfiguration()
Method Detail

getCache

@Bean(name="defaultCache")
public Cache getCache()
               throws java.io.IOException
Throws:
java.io.IOException

getObjectMapper

@Bean(name="defaultObjectMapper")
public org.codehaus.jackson.map.ObjectMapper getObjectMapper()