1 22 package org.jboss.annotation.ejb.cache.simple; 23 24 import java.lang.annotation.Annotation ; 25 26 30 public class CacheConfigImpl implements CacheConfig 31 { 32 private int maxSize = 100000; 33 private long idleTimeoutSeconds = 300; 34 35 public CacheConfigImpl() 36 { 37 } 38 39 public int maxSize() 40 { 41 return maxSize; 42 } 43 44 public void setMaxSize(int maxSize) 45 { 46 this.maxSize = maxSize; 47 } 48 49 public long idleTimeoutSeconds() 50 { 51 return idleTimeoutSeconds; 52 } 53 54 public void setIdleTimeoutSeconds(long idleTimeoutSeconds) 55 { 56 this.idleTimeoutSeconds = idleTimeoutSeconds; 57 } 58 59 public Class <? extends Annotation > annotationType() 60 { 61 return CacheConfig.class; 62 } 63 } 64 | Popular Tags |