[jboss-cvs] JBossAS SVN: r95429 - in projects/jboss-osgi/projects/runtime: equinox/trunk/src/main/java/org/jboss/osgi/equinox and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 22 13:01:01 EDT 2009
Author: thomas.diesler at jboss.com
Date: 2009-10-22 13:01:01 -0400 (Thu, 22 Oct 2009)
New Revision: 95429
Modified:
projects/jboss-osgi/projects/runtime/equinox/trunk/pom.xml
projects/jboss-osgi/projects/runtime/equinox/trunk/src/main/java/org/jboss/osgi/equinox/EquinoxBootstrapProvider.java
projects/jboss-osgi/projects/runtime/felix/trunk/pom.xml
projects/jboss-osgi/projects/runtime/felix/trunk/src/main/java/org/jboss/osgi/felix/FelixBootstrapProvider.java
Log:
Log version info on runtime bootstrap
Modified: projects/jboss-osgi/projects/runtime/equinox/trunk/pom.xml
===================================================================
--- projects/jboss-osgi/projects/runtime/equinox/trunk/pom.xml 2009-10-22 16:42:48 UTC (rev 95428)
+++ projects/jboss-osgi/projects/runtime/equinox/trunk/pom.xml 2009-10-22 17:01:01 UTC (rev 95429)
@@ -14,7 +14,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
- <name>JBossOSGi Runtime Equinox</name>
+ <name>JBossOSGi Equinox</name>
<groupId>org.jboss.osgi.runtime</groupId>
<artifactId>jboss-osgi-runtime-equinox</artifactId>
Modified: projects/jboss-osgi/projects/runtime/equinox/trunk/src/main/java/org/jboss/osgi/equinox/EquinoxBootstrapProvider.java
===================================================================
--- projects/jboss-osgi/projects/runtime/equinox/trunk/src/main/java/org/jboss/osgi/equinox/EquinoxBootstrapProvider.java 2009-10-22 16:42:48 UTC (rev 95428)
+++ projects/jboss-osgi/projects/runtime/equinox/trunk/src/main/java/org/jboss/osgi/equinox/EquinoxBootstrapProvider.java 2009-10-22 17:01:01 UTC (rev 95429)
@@ -23,9 +23,13 @@
//$Id$
+import java.net.URL;
+
import org.jboss.osgi.deployment.DeploymentActivator;
import org.jboss.osgi.spi.framework.PropertiesBootstrapProvider;
import org.osgi.framework.BundleContext;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* A bootstrap provider for Equinox.
@@ -35,9 +39,23 @@
*/
public class EquinoxBootstrapProvider extends PropertiesBootstrapProvider
{
+ // Provide logging
+ final Logger log = LoggerFactory.getLogger(EquinoxBootstrapProvider.class);
+
private DeploymentActivator deploymentActivator;
@Override
+ public void configure(URL urlConfig)
+ {
+ super.configure(urlConfig);
+
+ // Log INFO about this implementation
+ String implTitle = getClass().getPackage().getImplementationTitle();
+ String impVersion = getClass().getPackage().getImplementationVersion();
+ log.info(implTitle + " - " + impVersion);
+ }
+
+ @Override
protected void registerSystemServices(BundleContext context)
{
deploymentActivator = new DeploymentActivator();
Modified: projects/jboss-osgi/projects/runtime/felix/trunk/pom.xml
===================================================================
--- projects/jboss-osgi/projects/runtime/felix/trunk/pom.xml 2009-10-22 16:42:48 UTC (rev 95428)
+++ projects/jboss-osgi/projects/runtime/felix/trunk/pom.xml 2009-10-22 17:01:01 UTC (rev 95429)
@@ -14,7 +14,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
- <name>JBossOSGi Runtime Felix</name>
+ <name>JBossOSGi Felix</name>
<groupId>org.jboss.osgi.runtime</groupId>
<artifactId>jboss-osgi-runtime-felix</artifactId>
Modified: projects/jboss-osgi/projects/runtime/felix/trunk/src/main/java/org/jboss/osgi/felix/FelixBootstrapProvider.java
===================================================================
--- projects/jboss-osgi/projects/runtime/felix/trunk/src/main/java/org/jboss/osgi/felix/FelixBootstrapProvider.java 2009-10-22 16:42:48 UTC (rev 95428)
+++ projects/jboss-osgi/projects/runtime/felix/trunk/src/main/java/org/jboss/osgi/felix/FelixBootstrapProvider.java 2009-10-22 17:01:01 UTC (rev 95429)
@@ -23,10 +23,14 @@
//$Id$
+import java.net.URL;
+
import org.jboss.osgi.deployment.DeploymentActivator;
import org.jboss.osgi.spi.framework.PropertiesBootstrapProvider;
import org.osgi.framework.BundleContext;
import org.osgi.framework.launch.Framework;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* A bootstrap provider for Felix.
@@ -36,9 +40,23 @@
*/
public class FelixBootstrapProvider extends PropertiesBootstrapProvider
{
+ // Provide logging
+ final Logger log = LoggerFactory.getLogger(FelixBootstrapProvider.class);
+
private DeploymentActivator deploymentActivator;
@Override
+ public void configure(URL urlConfig)
+ {
+ super.configure(urlConfig);
+
+ // Log INFO about this implementation
+ String implTitle = getClass().getPackage().getImplementationTitle();
+ String impVersion = getClass().getPackage().getImplementationVersion();
+ log.info(implTitle + " - " + impVersion);
+ }
+
+ @Override
public Framework getFramework()
{
Framework framework = super.getFramework();
More information about the jboss-cvs-commits
mailing list