arez.spy.ComponentCreateCompleteEvent Maven / Gradle / Ivy
package arez.spy;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nonnull;
/**
* Notification when a Component is has finished being created.
*/
public final class ComponentCreateCompleteEvent
implements SerializableEvent
{
@Nonnull
private final ComponentInfo _componentInfo;
public ComponentCreateCompleteEvent( @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", "ComponentCreateComplete" );
map.put( "name", getComponentInfo().getName() );
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy