public void init ( int size , int delay ) { if ( cacheManager == null ) { synchronized ( OCSPCache . class ) { if ( cacheManager == null ) { cacheManager = new CacheManager ( cache , size , delay ) ; CacheController mbean = new CacheController ( cache , cacheManager ) ; MBeanRegistrar . getInstance ( ) . registerMBean ( mbean , "CacheController" , "OCSPCacheController" ) ; } } } }
This lazy initializes the cache with a CacheManager . If this method is not called a cache manager will not be used .