All Downloads are FREE. Search and download functionalities are using the official Maven repository.

arez.spy.ComponentDisposeStartEvent Maven / Gradle / Ivy

There is a newer version: 0.213
Show newest version
package arez.spy;

import java.util.Map;
import java.util.Objects;
import javax.annotation.Nonnull;

/**
 * Notification when a Component is disposed.
 */
public final class ComponentDisposeStartEvent
  implements SerializableEvent
{
  @Nonnull
  private final ComponentInfo _componentInfo;

  public ComponentDisposeStartEvent( @Nonnull final ComponentInfo componentInfo )
  {
    _componentInfo = Objects.requireNonNull( componentInfo );
  }

  @Nonnull
  public ComponentInfo getComponentInfo()
  {
    return _componentInfo;
  }

  @Override
  public void toMap( @Nonnull final Map map )
  {
    map.put( "type", "ComponentDisposeStart" );
    map.put( "name", getComponentInfo().getName() );
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy