Method: getUserRegionConfigurationProperties()

1: package org.eclipse.virgo.nano.config.internal;
2:
3: import java.util.Dictionary;
4:
5: import org.eclipse.virgo.nano.core.ConfigurationExporter;
6: import org.osgi.service.cm.Configuration;
7:
8: /**
9: * ConfigurationExporter
10: * <p />
11: *
12: * <strong>Concurrent Semantics</strong><br />
13: * threadsafe
14: *
15: */
16: public class StandardConfigurationExporter implements ConfigurationExporter {
17:         
18:         private Configuration userregionConfiguration;
19:         
20:         private Configuration kernelregionConfiguration;
21:         
22:         public StandardConfigurationExporter (Configuration userregionConfiguration, Configuration kernelregionConfiguraion) {
23:                 this.userregionConfiguration = userregionConfiguration;
24:                 this.kernelregionConfiguration = kernelregionConfiguraion;
25:         }
26:         
27:         /* (non-Javadoc)
28:          * @see org.eclipse.virgo.nano.config.internal.ConfigurationExporter#getUserregionConfiguration()
29:          */
30:         @Override
31:         public Dictionary getUserRegionConfigurationProperties() {
32:                 return userregionConfiguration.getProperties();
33:         }
34:         
35:         /* (non-Javadoc)
36:          * @see org.eclipse.virgo.nano.config.internal.ConfigurationExporter#getKernelregionConfiguration()
37:          */
38:         @Override
39:         public Dictionary getKernelRegionConfigurationProperties() {
40:                 return kernelregionConfiguration.getProperties();
41:         }
42: }