Repository: incubator-tamaya Updated Branches: refs/heads/master c312fff58 -> 1078c9931
TAMAYA-60 Started to extract a common base class out ouf DefaultConfigurationContext. Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/1078c993 Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/1078c993 Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/1078c993 Branch: refs/heads/master Commit: 1078c9931de22db09e34f204df92abfe53730bb5 Parents: c312fff Author: Oliver B. Fischer <[email protected]> Authored: Sat Jan 24 23:31:16 2015 +0100 Committer: Oliver B. Fischer <[email protected]> Committed: Sat Jan 24 23:31:16 2015 +0100 ---------------------------------------------------------------------- .../core/internal/BaseConfigurationContext.java | 30 ++++++++++++++++++++ .../internal/DefaultConfigurationContext.java | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/1078c993/java8/core/src/main/java/org/apache/tamaya/core/internal/BaseConfigurationContext.java ---------------------------------------------------------------------- diff --git a/java8/core/src/main/java/org/apache/tamaya/core/internal/BaseConfigurationContext.java b/java8/core/src/main/java/org/apache/tamaya/core/internal/BaseConfigurationContext.java new file mode 100644 index 0000000..d299ca4 --- /dev/null +++ b/java8/core/src/main/java/org/apache/tamaya/core/internal/BaseConfigurationContext.java @@ -0,0 +1,30 @@ +/* + * 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.tamaya.core.internal; + +import org.apache.tamaya.spi.ConfigurationContext; + +/** + * Base class for all implementations of {@code ConfigurationContext}. + * + * @see ConfigurationContext + */ +public abstract class BaseConfigurationContext + implements ConfigurationContext { +} http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/1078c993/java8/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java ---------------------------------------------------------------------- diff --git a/java8/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java b/java8/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java index 8b17c77..0cef2c5 100644 --- a/java8/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java +++ b/java8/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java @@ -39,7 +39,7 @@ import java.util.concurrent.locks.StampedLock; /** * Default Implementation of a simple ConfigurationContext. */ -public class DefaultConfigurationContext implements ConfigurationContext { +public class DefaultConfigurationContext extends BaseConfigurationContext { /** * Cubcomponent handling {@link org.apache.tamaya.PropertyConverter} instances. */
