[ 
https://issues.apache.org/jira/browse/CAMEL-12833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16627252#comment-16627252
 ] 

ASF GitHub Bot commented on CAMEL-12833:
----------------------------------------

jamesnetherton commented on a change in pull request #2532: CAMEL-12833: 
Provide a method of customizing Camel CDI context creation
URL: https://github.com/apache/camel/pull/2532#discussion_r220169460
 
 

 ##########
 File path: 
components/camel-cdi/src/main/java/org/apache/camel/cdi/DefaultContextCreateStrategy.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.camel.cdi;
+
+import org.apache.camel.CamelContext;
+
+/**
+ * Default {@link ContextCreateStrategy} which returns the result of the 
{@link ContextCreateAction}
+ */
+final class DefaultContextCreateStrategy implements ContextCreateStrategy {
 
 Review comment:
   Done.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Provide a method of customizing Camel CDI context creation
> ----------------------------------------------------------
>
>                 Key: CAMEL-12833
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12833
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cdi
>            Reporter: James Netherton
>            Assignee: James Netherton
>            Priority: Major
>
> For some platforms it'd be useful if Camel CDI had some way of customizing 
> the way in which a {{CamelContext}} was created. E.g for controlling which 
> ClassLoader is used during instantiation.
> I propose to introduce a {{ContextCreateStrategy}} which users can provide 
> custom instances of in their deployments. The default implementation will do 
> {{CamelContext}} creation as per normal.
> Some more background for the motivation here:
> https://github.com/wildfly-extras/wildfly-camel/issues/2497



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to