[freenet-dev] [freenet-cvs] r20718 - branches/db4o/freenet/src/freenet/client/async
Daniel Cheng
j16sdiz+freenet at gmail.com
Thu Jun 26 04:00:11 UTC 2008
On Thu, Jun 26, 2008 at 5:07 AM, <toad at freenetproject.org> wrote:
> Author: toad
> Date: 2008-06-25 21:07:06 +0000 (Wed, 25 Jun 2008)
> New Revision: 20718
>
> Modified:
> branches/db4o/freenet/src/freenet/client/async/RegisterMe.java
> Log:
> Transparent activation of the key
>
This is not "Transparent Activation" (TA).
TA have special meaning in db4o and the object have to implement
"Activatable" interface, see:
http://developer.db4o.com/Resources/view.aspx/Reference/Object_Lifecycle/Activation/Transparent_Activation_Framework
> Modified: branches/db4o/freenet/src/freenet/client/async/RegisterMe.java
> ===================================================================
> --- branches/db4o/freenet/src/freenet/client/async/RegisterMe.java 2008-06-25 20:54:28 UTC (rev 20717)
> +++ branches/db4o/freenet/src/freenet/client/async/RegisterMe.java 2008-06-25 21:07:06 UTC (rev 20718)
> @@ -1,5 +1,7 @@
> package freenet.client.async;
>
> +import com.db4o.ObjectContainer;
> +
> import freenet.node.SendableRequest;
>
> public class RegisterMe {
> @@ -12,5 +14,9 @@
> this.core = core;
> this.key = new RegisterMeSortKey(getter.getPriorityClass());
> }
> +
> + public void objectOnActivate(ObjectContainer container) {
> + container.activate(key, 1);
> + }
> }
>
>
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
>
More information about the Devl
mailing list