diff options
Diffstat (limited to 'sandbox/lresende/das/api/src/main/java/org/apache/tuscany/das/ConfigHelper.java')
-rw-r--r-- | sandbox/lresende/das/api/src/main/java/org/apache/tuscany/das/ConfigHelper.java | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sandbox/lresende/das/api/src/main/java/org/apache/tuscany/das/ConfigHelper.java b/sandbox/lresende/das/api/src/main/java/org/apache/tuscany/das/ConfigHelper.java new file mode 100644 index 0000000000..c9117a5d0a --- /dev/null +++ b/sandbox/lresende/das/api/src/main/java/org/apache/tuscany/das/ConfigHelper.java @@ -0,0 +1,54 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.tuscany.das; + + +import org.apache.tuscany.das.config.Config; +import org.apache.tuscany.das.config.ConfigFactory; + +/** + * A ConfigHelper is used as an aid in programmatic construction of Config instances. + * Manual contrution fo COnfig is an alternative to providing needed configuration + * information in an XML file + * + */ +public class ConfigHelper { + + private Config config; + + //private MappingWrapper configWrapper; + + private ConfigFactory factory = ConfigFactory.INSTANCE; + + public ConfigHelper() { + config = factory.createConfig(); + //configWrapper = new MappingWrapper(config); + } + + public ConfigHelper(Config config) { + this.config = config; + //configWrapper = new MappingWrapper(config); + } + + + public Config getConfig() { + return config; + } + +} |