From: <aft...@us...> - 2007-05-30 16:21:21
|
Revision: 4218 http://svn.sourceforge.net/smartfrog/?rev=4218&view=rev Author: aftereight Date: 2007-05-30 09:21:07 -0700 (Wed, 30 May 2007) Log Message: ----------- preparing bundle deployer Added Paths: ----------- branches/core-branch-osgi/extras/osgi/test/org/smartfrog/osgi/test/ branches/core-branch-osgi/extras/osgi/test/org/smartfrog/osgi/test/Test.java branches/core-branch-osgi/extras/osgi/test/org/smartfrog/osgi/test/TestImpl.java branches/core-branch-osgi/extras/osgi/test/org/smartfrog/osgi/test/test.sf Removed Paths: ------------- branches/core-branch-osgi/extras/osgi/src/org/smartfrog/osgi/test/ Added: branches/core-branch-osgi/extras/osgi/test/org/smartfrog/osgi/test/Test.java =================================================================== --- branches/core-branch-osgi/extras/osgi/test/org/smartfrog/osgi/test/Test.java (rev 0) +++ branches/core-branch-osgi/extras/osgi/test/org/smartfrog/osgi/test/Test.java 2007-05-30 16:21:07 UTC (rev 4218) @@ -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/test/org/smartfrog/osgi/test/TestImpl.java =================================================================== --- branches/core-branch-osgi/extras/osgi/test/org/smartfrog/osgi/test/TestImpl.java (rev 0) +++ branches/core-branch-osgi/extras/osgi/test/org/smartfrog/osgi/test/TestImpl.java 2007-05-30 16:21:07 UTC (rev 4218) @@ -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/test/org/smartfrog/osgi/test/test.sf =================================================================== --- branches/core-branch-osgi/extras/osgi/test/org/smartfrog/osgi/test/test.sf (rev 0) +++ branches/core-branch-osgi/extras/osgi/test/org/smartfrog/osgi/test/test.sf 2007-05-30 16:21:07 UTC (rev 4218) @@ -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. |