Coverage Report - org.dozer.cache.CacheManager
 
Classes in this File Line Coverage Branch Coverage Complexity
CacheManager
N/A
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2013 Dozer Project
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *      http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.dozer.cache;
 17  
 
 18  
 import java.util.Collection;
 19  
 
 20  
 /**
 21  
  * Internal interface for managing caches. Only intended for internal use.
 22  
  * 
 23  
  * @author tierney.matt
 24  
  * @author dmitry.buzdin
 25  
  */
 26  
 public interface CacheManager {
 27  
 
 28  
   /**
 29  
    * Clears all available caches. Should not be used in production. Can be applied on "soft" application restart.
 30  
    */
 31  
   void clearAllEntries();
 32  
 
 33  
   /**
 34  
    * Returns a Set of all Cache names
 35  
    * @return Set of String objects representing Cache names.
 36  
    */
 37  
   Collection<String> getCacheNames();
 38  
 
 39  
   Collection<Cache> getCaches();
 40  
 
 41  
   /**
 42  
    * Get Cache object by name.
 43  
    * @param cacheName unique cache name
 44  
    * @return Cache object or will throw MappingException in case Cache is not registered.
 45  
    */
 46  
   Cache getCache(String cacheName);
 47  
 
 48  
   void addCache(String cacheName, int maximumSize);
 49  
 
 50  
   boolean cacheExists(String cacheName);
 51  
 
 52  
 }