From c28787890ff768625126172e900849e0adbd703b Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Wed, 22 Jun 2011 10:36:17 +0900 Subject: [PATCH] Add OSGi bundle activator --- pom.xml | 45 ++++++++++++++----- .../xerial/snappy/SnappyBundleActivator.java | 42 +++++++++++++++++ 2 files changed, 77 insertions(+), 10 deletions(-) create mode 100755 src/main/java/org/xerial/snappy/SnappyBundleActivator.java diff --git a/pom.xml b/pom.xml index b2ac568..f73dff9 100755 --- a/pom.xml +++ b/pom.xml @@ -1,11 +1,13 @@ - + 4.0.0 org.xerial.snappy snappy-java 1.0.3-rc4-SNAPSHOT Snappy for Java - Compression/decompression library + snappy-java: A fast compression/decompression library + bundle UTF-8 @@ -95,9 +97,9 @@ org.apache.maven.plugins maven-source-plugin 2.1.2 - - true - + + true + attach-sources @@ -109,6 +111,21 @@ + + org.apache.felix + maven-bundle-plugin + 2.3.4 + true + + + ${project.groupId}.${project.artifactId} + ${pproject.name} + ${project.version} + org.xerial.snappy.SnappyBundleActivator + org.xerial.snappy + + + @@ -200,12 +217,20 @@ jar test + - org.codehaus.plexus - plexus-classworlds - 2.4 - jar - test + org.codehaus.plexus + plexus-classworlds + 2.4 + jar + test + + + org.osgi + core + 4.3.0 + jar + provided diff --git a/src/main/java/org/xerial/snappy/SnappyBundleActivator.java b/src/main/java/org/xerial/snappy/SnappyBundleActivator.java new file mode 100755 index 0000000..ae7cc56 --- /dev/null +++ b/src/main/java/org/xerial/snappy/SnappyBundleActivator.java @@ -0,0 +1,42 @@ +/*-------------------------------------------------------------------------- + * Copyright 2011 Taro L. Saito + * + * Licensed 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. + *--------------------------------------------------------------------------*/ +//-------------------------------------- +// XerialJ +// +// SnappyBundleActivator.java +// Since: 2011/06/22 10:01:46 +// +// $URL$ +// $Author$ +//-------------------------------------- +package org.xerial.snappy; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; + +public class SnappyBundleActivator implements BundleActivator +{ + @Override + public void start(BundleContext context) throws Exception { + + } + + @Override + public void stop(BundleContext context) throws Exception { + + } + +}