tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject incubator-tamaya-extensions git commit: TAMAYA-194: Added Refreshable interface.
Date Sat, 12 Nov 2016 11:13:01 GMT
Repository: incubator-tamaya-extensions
Updated Branches:
  refs/heads/master 4d01f9093 -> 14b3abbd5


TAMAYA-194: Added Refreshable interface.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/commit/14b3abbd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/tree/14b3abbd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/diff/14b3abbd

Branch: refs/heads/master
Commit: 14b3abbd5d99d5064ca4a5585c56077446d659de
Parents: 4d01f90
Author: anatole <anatole@apache.org>
Authored: Sat Nov 12 12:12:52 2016 +0100
Committer: anatole <anatole@apache.org>
Committed: Sat Nov 12 12:12:52 2016 +0100

----------------------------------------------------------------------
 .../tamaya/mutableconfig/Refreshable.java       | 33 ++++++++++++++++++++
 1 file changed, 33 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/14b3abbd/modules/mutable-config/src/main/java/org/apache/tamaya/mutableconfig/Refreshable.java
----------------------------------------------------------------------
diff --git a/modules/mutable-config/src/main/java/org/apache/tamaya/mutableconfig/Refreshable.java
b/modules/mutable-config/src/main/java/org/apache/tamaya/mutableconfig/Refreshable.java
new file mode 100644
index 0000000..685e5e5
--- /dev/null
+++ b/modules/mutable-config/src/main/java/org/apache/tamaya/mutableconfig/Refreshable.java
@@ -0,0 +1,33 @@
+/*
+ * 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.mutableconfig;
+
+/**
+ * Interface to be implemented by items that can be refreshed. By default
+ * these are property sources, but more types may be supported at a later
+ * point in time.
+ */
+public interface Refreshable {
+
+    /**
+     * Refreshes the item by reloading its internal state.
+     */
+    void refresh();
+
+}


Mime
View raw message