From: <aft...@us...> - 2007-05-30 16:19:25
|
Revision: 4217 http://svn.sourceforge.net/smartfrog/?rev=4217&view=rev Author: aftereight Date: 2007-05-30 09:19:17 -0700 (Wed, 30 May 2007) Log Message: ----------- preparing bundle deployer Modified Paths: -------------- branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/SmartFrogActivator.java Added Paths: ----------- branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/test/ branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/test/Test.java branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/test/TestImpl.java branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/test/test.sf branches/core-branch-osgi/extras/osgi/test/ branches/core-branch-osgi/extras/osgi/test/org/ branches/core-branch-osgi/extras/osgi/test/org/smartfrog/ branches/core-branch-osgi/extras/osgi/test/org/smartfrog/osgi/ Modified: branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/SmartFrogActivator.java =================================================================== --- branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/SmartFrogActivator.java 2007-05-30 15:54:46 UTC (rev 4216) +++ branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/SmartFrogActivator.java 2007-05-30 16:19:17 UTC (rev 4217) @@ -18,6 +18,7 @@ public void start(BundleContext bundleContext) throws Exception { ServiceReference logServiceReference = bundleContext.getServiceReference("org.osgi.service.log.LogService"); + // TODO: Handle missing LogService gracefully if (logServiceReference != null) logService = (LogService) bundleContext.getService(logServiceReference); @@ -33,7 +34,6 @@ //System.setProperty("java.rmi.server.logCalls","true"); //System.setProperty("sun.rmi.loader.logLevel","VERBOSE"); - logService.log(LOG_DEBUG, "Current thread context CL: " + Thread.currentThread().getContextClassLoader()); logService.log(LOG_DEBUG, "System CL " + ClassLoader.getSystemClassLoader()); ClassLoader bundleCL = this.getClass().getClassLoader(); Added: branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/test/Test.java =================================================================== --- branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/test/Test.java (rev 0) +++ branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/test/Test.java 2007-05-30 16:19:17 UTC (rev 4217) @@ -0,0 +1,9 @@ +package org.smartfrog.osgi.test; + +import org.smartfrog.sfcore.prim.Prim; + +import java.rmi.RemoteException; + +public interface Test extends Prim { + void sayHello() throws RemoteException; +} Added: branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/test/TestImpl.java =================================================================== --- branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/test/TestImpl.java (rev 0) +++ branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/test/TestImpl.java 2007-05-30 16:19:17 UTC (rev 4217) @@ -0,0 +1,23 @@ +package org.smartfrog.osgi.test; + +import org.smartfrog.sfcore.prim.PrimImpl; +import org.smartfrog.sfcore.common.SmartFrogException; + +import java.rmi.RemoteException; + +public class TestImpl extends PrimImpl implements Test { + private String message = null; + + public TestImpl() throws RemoteException {} + + public void sfStart() throws SmartFrogException, RemoteException { + super.sfStart(); + + message = (String) sfResolve("message"); + if (message == null) message = "Default Message !"; + } + + public void sayHello() throws RemoteException { + System.out.println(message); + } +} Added: branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/test/test.sf =================================================================== --- branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/test/test.sf (rev 0) +++ branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/test/test.sf 2007-05-30 16:19:17 UTC (rev 4217) @@ -0,0 +1,5 @@ +#include "org/smartfrog/components.sf" + +test extends Prim { + message extends OptionalString; +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |