001package arez;
002
003import javax.annotation.Nullable;
004
005/**
006 * Hook that can be registered for the current observer.
007 */
008public final class Hook
009{
010  @Nullable
011  private final Procedure _onActivate;
012  @Nullable
013  private final Procedure _onDeactivate;
014
015  Hook( @Nullable final Procedure onActivate, @Nullable final Procedure onDeactivate )
016  {
017    _onActivate = onActivate;
018    _onDeactivate = onDeactivate;
019  }
020
021  @Nullable
022  Procedure getOnActivate()
023  {
024    return _onActivate;
025  }
026
027  @Nullable
028  Procedure getOnDeactivate()
029  {
030    return _onDeactivate;
031  }
032}