You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cm...@apache.org on 2012/09/04 12:54:55 UTC

svn commit: r1380543 - /camel/trunk/components/camel-cdi/src/test/java/org/apache/camel/cdi/support/CdiConfigFile.java

Author: cmoulliard
Date: Tue Sep  4 10:54:55 2012
New Revision: 1380543

URL: http://svn.apache.org/viewvc?rev=1380543&view=rev
Log:
Example using @ConfigProperty of DeltaSpike

Added:
    camel/trunk/components/camel-cdi/src/test/java/org/apache/camel/cdi/support/CdiConfigFile.java

Added: camel/trunk/components/camel-cdi/src/test/java/org/apache/camel/cdi/support/CdiConfigFile.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cdi/src/test/java/org/apache/camel/cdi/support/CdiConfigFile.java?rev=1380543&view=auto
==============================================================================
--- camel/trunk/components/camel-cdi/src/test/java/org/apache/camel/cdi/support/CdiConfigFile.java (added)
+++ camel/trunk/components/camel-cdi/src/test/java/org/apache/camel/cdi/support/CdiConfigFile.java Tue Sep  4 10:54:55 2012
@@ -0,0 +1,32 @@
+/**
+ * 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.camel.cdi.support;
+
+import org.apache.deltaspike.core.api.config.PropertyFileConfig;
+
+/*
+ * Class which is used to retrieve camel properties files tp configure endpoints.
+ * By default, it will check for the file META-INF/camel-properties
+ */
+public class CdiConfigFile implements PropertyFileConfig {
+
+    @Override
+    public String getPropertyFileName() {
+        return "META-INF/camel.properties";
+    };
+
+}
\ No newline at end of file