This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit c526ecb3289a98bac2c58875169ba7cc599ade53 Author: Claus Ibsen <[email protected]> AuthorDate: Mon Jun 14 09:24:06 2021 +0200 CAMEL-16711: components - Move OSGi dependenct code to camel-karaf --- .../zookeepermaster/group/GroupHelper.java | 38 ---------------------- 1 file changed, 38 deletions(-) diff --git a/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/group/GroupHelper.java b/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/group/GroupHelper.java deleted file mode 100644 index b1120d5..0000000 --- a/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/group/GroupHelper.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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.component.zookeepermaster.group; - -import org.apache.camel.CamelContext; -import org.apache.camel.support.CamelContextHelper; -import org.apache.curator.framework.CuratorFramework; - -public final class GroupHelper { - - private GroupHelper() { - } - - public static ManagedGroupFactory createManagedGroupFactory( - CamelContext camelContext, ClassLoader loader, CuratorFramework curator) { - ManagedGroupFactory factory = CamelContextHelper.findByType(camelContext, ManagedGroupFactory.class); - if (factory == null) { - factory = new DefaultManagedGroupFactory(curator, true); - } - factory.setClassLoader(loader); - return factory; - } - -}
