@Override public String toString() { return "ObjectCreatedEvent$Default{source=" + getSource() + "}"; } }
/** * When the {@link org.apache.isis.applib.services.command.Command} is made available on the {@link org.apache.isis.applib.services.eventbus.ActionInteractionEvent} * via {@link org.apache.isis.applib.services.eventbus.ActionInteractionEvent#getCommand()}. */ public boolean isExecutingOrLater() { return isExecuting() || isExecuted(); }
/** * Post an event. */ @Programmatic public void post(Object event) { if(skip(event)) { return; } getEventBusImplementation().post(event); }
/** * The subject of the event, which will be either the {@link #getSource() source} for a regular action, or the * {@link #getMixedIn() mixed-in} domain object for a mixin. */ public Object getSubject() { final Object mixedIn = getMixedIn(); return mixedIn != null ? mixedIn : getSource(); }
/** * @deprecated - use {@link #getEventPhase()} instead. */ @Deprecated public Phase getPhase() { return Phase.from(getEventPhase()); }
/** * Not API, set by the framework. */ @Deprecated public void setPhase(Phase phase) { setEventPhase(Phase.from(phase)); } //endregion
public AbstractDomainEvent( final S source, final Identifier identifier) { super(sourceElseDummy(source)); this.identifier = identifier; }
@Override public String toString() { return "ObjectRemovingEvent$Default{source=" + getSource() + "}"; } }
/** * The significance being that at this point the proposed values/arguments are known, and so the event can be * fully populated. */ public boolean isValidatingOrLater() { return this == VALIDATE || isExecutingOrLater(); }
@Override public String toString() { return "ObjectUpdatedEvent$Default{source=" + getSource() + "}"; } }
protected void teardownEventBus() { if(registeredSubscribers != null) { for (Object subscriber : this.registeredSubscribers) { eventBusImplementation.unregister(subscriber); } } this.eventBusImplementation = null; }
@Override public String toString() { return "ObjectPersistedEvent$Default{source=" + getSource() + "}"; } }
@Override public String toString() { return "ObjectUpdatingEvent$Default{source=" + getSource() + "}"; } }
@Override public String toString() { return "ObjectPersistingEvent$Default{source=" + getSource() + "}"; } }
@Override public String toString() { return "ObjectLoadedEvent$Default{source=" + getSource() + "}"; } }
public AbstractUiEvent(final S source) { super(sourceElseDummy(source)); }
public AbstractLifecycleEvent(final S source) { super(sourceElseDummy(source)); }
/** * Extracted out only to make it easier for subclasses to override {@link #register(Object)} if there were ever a * need to. */ protected void doRegister(Object domainService) { if(eventBusImplementation == null) { subscribers.add(domainService); } else { eventBusImplementation.register(domainService); } }
/** * @deprecated - the {@link #ActionDomainEvent() no-arg constructor} is recommended instead, to reduce boilerplate. */ @Deprecated public ActionDomainEvent( final S source, final Identifier identifier, final Object... arguments) { this(source, identifier, asList(arguments)); }