deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rsme...@apache.org
Subject deltaspike git commit: DELTASPIKE-750 updated documentation.
Date Tue, 21 Apr 2015 12:22:53 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 8f9cbe761 -> 3f0f5f095


DELTASPIKE-750 updated documentation.


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/3f0f5f09
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/3f0f5f09
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/3f0f5f09

Branch: refs/heads/master
Commit: 3f0f5f095183ee61d0981c964a6c6566e8ab0ac2
Parents: 8f9cbe7
Author: Andi <andihouben@web.de>
Authored: Tue Nov 18 20:35:18 2014 +0100
Committer: Ron Smeral <rsmeral@apache.org>
Committed: Tue Apr 21 14:19:54 2015 +0200

----------------------------------------------------------------------
 documentation/src/main/asciidoc/configuration.adoc | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/3f0f5f09/documentation/src/main/asciidoc/configuration.adoc
----------------------------------------------------------------------
diff --git a/documentation/src/main/asciidoc/configuration.adoc b/documentation/src/main/asciidoc/configuration.adoc
index d088311..2bada1b 100644
--- a/documentation/src/main/asciidoc/configuration.adoc
+++ b/documentation/src/main/asciidoc/configuration.adoc
@@ -235,6 +235,11 @@ For registering all your own property files of a certain name in your
 classpath to get picked up as `ConfigSource`s you can also provide a
 class which implements the `PropertyFileConfig` interface.
 
+The method `isOptional` indicates whether your custom property file is mandatory.
+If a mandatory property file is not found during deployment, DeltaSpike throws
+an `IllegalStateException` and stops the deployment.
+
+
 [source,java]
 ---------------------------------------------------------------------
 public class MyCustomPropertyFileConfig implements PropertyFileConfig
@@ -244,6 +249,12 @@ public class MyCustomPropertyFileConfig implements PropertyFileConfig
     {
         return "myconfig.properties";
     }
+
+    @Override
+    public boolean isOptional()
+    {
+        return false;
+    }
 }
 ---------------------------------------------------------------------
 


Mime
View raw message