1 23 24 29 30 package com.sun.enterprise.config.impl; 31 32 import com.sun.enterprise.config.pluggable.ConfigEnvironment; 33 import com.sun.enterprise.config.pluggable.ConfigBeansSettings; 34 import com.sun.enterprise.config.pluggable.ConfigBeanInterceptor; 35 36 43 public class ConfigEnvironmentImpl implements ConfigEnvironment { 44 45 private boolean _autoCommitFlag = false; 46 private boolean _readOnlyFlag = true; 47 private boolean _cachingEnabledFlag = false; 48 private boolean _assertNotInCache = false; 49 50 private ConfigBeanInterceptor _cbInterceptor = null; 51 private String _url = null; 52 private String _handler = "com.sun.enterprise.config.serverbeans.ServerValidationHandler"; 53 private String _rootClass = "com.sun.enterprise.config.serverbeans.Domain"; 54 55 56 57 public ConfigEnvironmentImpl() { 58 } 59 60 public boolean isAutoCommitOn() { 61 return _autoCommitFlag; 62 } 63 64 public void setAutoCommitOn(boolean value) { 65 _autoCommitFlag = value; 66 } 67 68 public ConfigBeanInterceptor getConfigBeanInterceptor() { 69 return _cbInterceptor; 70 } 71 72 public void setConfigBeanInterceptor(ConfigBeanInterceptor cbInterceptor) { 73 _cbInterceptor = cbInterceptor; 74 } 75 76 80 public String getUrl() { 81 return _url; 82 } 83 84 public void setUrl(String url) { 85 _url = url; 86 } 87 88 public String getHandler() { 89 return _handler; 90 } 91 92 public void setHandler(String handler) { 93 _handler = handler; 94 } 95 96 public boolean isReadOnly() { 97 return _readOnlyFlag; 98 } 99 100 public void setReadOnly(boolean value) { 101 _readOnlyFlag = value; 102 } 103 104 108 public String getRootClass() { 109 return _rootClass; 110 } 111 112 public void setRootClass(String rootClass) { 113 _rootClass = rootClass; 114 } 115 116 public boolean isCachingEnabled() { 117 return _cachingEnabledFlag; 118 } 119 120 public void setCachingEnabled(boolean value) { 121 _cachingEnabledFlag = value; 122 } 123 124 public ConfigBeansSettings getConfigBeansSettings() { 125 return new ConfigBeansSettingsImpl(); 126 } 127 128 } 129 | Popular Tags |