1 15 package org.apache.hivemind.lib.factory; 16 17 import org.apache.hivemind.impl.BaseLocatable; 18 19 25 public class BeanFactoryContribution extends BaseLocatable 26 { 27 private String _name; 28 private Class _beanClass; 29 30 private Boolean _cacheable; 32 33 public Boolean getCacheable() 34 { 35 return _cacheable; 36 } 37 38 public String getName() 39 { 40 return _name; 41 } 42 43 public Class getBeanClass() 44 { 45 return _beanClass; 46 } 47 48 public void setCacheable(Boolean cacheable) 49 { 50 _cacheable = cacheable; 51 } 52 53 public void setName(String string) 54 { 55 _name = string; 56 } 57 58 public void setBeanClass(Class objectClass) 59 { 60 _beanClass = objectClass; 61 } 62 63 public boolean getStoreResultInCache(boolean defaultCacheable) 64 { 65 return _cacheable == null ? defaultCacheable : _cacheable.booleanValue(); 66 } 67 } 68 | Popular Tags |