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 c9ae6aa273bfed357bbf37184cedce3e8f3f3a60
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Jun 14 07:03:22 2021 +0200

    CAMEL-16711: components - Move OSGi dependenct code to camel-karaf
---
 components/camel-cmis/pom.xml                      | 12 ------
 .../camel/component/cmis/osgi/Activator.java       | 45 ----------------------
 2 files changed, 57 deletions(-)

diff --git a/components/camel-cmis/pom.xml b/components/camel-cmis/pom.xml
index d6c9256..7bd1d57 100644
--- a/components/camel-cmis/pom.xml
+++ b/components/camel-cmis/pom.xml
@@ -32,9 +32,6 @@
     <description>Camel CMIS which is based on Apache Chemistry 
support</description>
 
     <properties>
-        <camel.osgi.activator>
-            org.apache.camel.component.cmis.osgi.Activator
-        </camel.osgi.activator>
         <camel.osgi.import>
             !org.apache.chemistry.opencmis.client.runtime,*
         </camel.osgi.import>
@@ -52,15 +49,6 @@
             <version>${cmis-version}</version>
         </dependency>
 
-        <!-- osgi support -->
-        <dependency>
-            <groupId>org.osgi</groupId>
-            <artifactId>osgi.core</artifactId>
-            <scope>provided</scope>
-            <optional>true</optional>
-            <version>6.0.0</version>
-        </dependency>
-
         <!-- for testing -->
         <dependency>
             <groupId>org.apache.camel</groupId>
diff --git 
a/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/osgi/Activator.java
 
b/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/osgi/Activator.java
deleted file mode 100644
index cc19215..0000000
--- 
a/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/osgi/Activator.java
+++ /dev/null
@@ -1,45 +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.cmis.osgi;
-
-import org.apache.camel.component.cmis.SessionFactoryLocator;
-import org.apache.chemistry.opencmis.client.api.SessionFactory;
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceReference;
-
-// Locator the SessionFactoryImpl service
-public class Activator implements BundleActivator {
-    private ServiceReference reference;
-
-    @Override
-    public void start(BundleContext context) throws Exception {
-        // get the reference of SessionFactory service
-        reference = 
context.getServiceReference(SessionFactory.class.getName());
-        SessionFactory sessionFactory = (SessionFactory) 
context.getService(reference);
-        SessionFactoryLocator.setSessionFactory(sessionFactory);
-    }
-
-    @Override
-    public void stop(BundleContext context) throws Exception {
-        // release the reference
-        if (reference != null) {
-            context.ungetService(reference);
-        }
-    }
-
-}

Reply via email to