com.atlassian.confluence.cache.ehcache
Class EhCacheConfig

java.lang.Object
  extended by com.atlassian.confluence.cache.ehcache.EhCacheConfig

public class EhCacheConfig
extends Object

Class that represents Confluence's ehcache.xml. Exposes it both as a file and a stream.

This class also ensures that the default ehcache.xml file in the classpath is copied into home directory to allow it to be customized.


Constructor Summary
EhCacheConfig(BootstrapManager bootstrapManager)
           
 
Method Summary
 File getFile()
           
 InputStream getInputStream()
          Returns an input stream of the ehcache config file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhCacheConfig

public EhCacheConfig(BootstrapManager bootstrapManager)
Method Detail

getFile

public File getFile()
Returns:
location of ehcache.xml

getInputStream

public InputStream getInputStream()
Returns an input stream of the ehcache config file.

Returns:
an input stream of the ehcache config file.


Copyright © 2003-2011 Atlassian. All Rights Reserved.