Package com.db4o.internal.activation
Class ActivatableBase
- java.lang.Object
-
- com.db4o.internal.activation.ActivatableBase
-
- All Implemented Interfaces:
Activatable
public abstract class ActivatableBase extends java.lang.Object implements Activatable
-
-
Constructor Summary
Constructors Constructor Description ActivatableBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(ActivationPurpose purpose)
Should be called by every reading field access of an object.protected void
activateForRead()
protected void
activateForWrite()
void
bind(Activator activator)
Called by db4o after the object instantiation.
-
-
-
Method Detail
-
bind
public void bind(Activator activator)
Description copied from interface:Activatable
Called by db4o after the object instantiation. This method is called to bind the object to the current activator
The recommended implementation of this method is to store the passedActivator
in a transient field of the object.- Specified by:
bind
in interfaceActivatable
- Parameters:
activator
- the Activator instance to bind
-
activate
public void activate(ActivationPurpose purpose)
Description copied from interface:Activatable
Should be called by every reading field access of an object.
The recommended implementation of this method is to callActivator.activate(ActivationPurpose)
on theActivator
that was previously passed toActivatable.bind(Activator)
.- Specified by:
activate
in interfaceActivatable
- Parameters:
purpose
- Whereever this object is accessed to read or write. SeeActivationPurpose
-
activateForRead
protected void activateForRead()
-
activateForWrite
protected void activateForWrite()
-
-