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 voidactivate(ActivationPurpose purpose)Should be called by every reading field access of an object.protected voidactivateForRead()protected voidactivateForWrite()voidbind(Activator activator)Called by db4o after the object instantiation.
-
-
-
Method Detail
-
bind
public void bind(Activator activator)
Description copied from interface:ActivatableCalled 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 passedActivatorin a transient field of the object.- Specified by:
bindin interfaceActivatable- Parameters:
activator- the Activator instance to bind
-
activate
public void activate(ActivationPurpose purpose)
Description copied from interface:ActivatableShould be called by every reading field access of an object.
The recommended implementation of this method is to callActivator.activate(ActivationPurpose)on theActivatorthat was previously passed toActivatable.bind(Activator).- Specified by:
activatein interfaceActivatable- Parameters:
purpose- Whereever this object is accessed to read or write. SeeActivationPurpose
-
activateForRead
protected void activateForRead()
-
activateForWrite
protected void activateForWrite()
-
-