public interface Activatable
The GNU Lesser General Public License for details.
Modifier and Type | Method and Description |
---|---|
void |
activate(Lock lock)
Called to indicate that the Book should initialize itself, and consume
whatever system resources it needs to be able to respond to other
queries.
|
void |
deactivate(Lock lock)
Called to indicate that the Book should release whatever system resources
it can to make way for other uses.
|
void activate(Lock lock)
lock
- An attempt to ensure that only the Activator calls this methodvoid deactivate(Lock lock)
lock
- An attempt to ensure that only the Activator calls this method