Package-level declarations
This package provides classes and interfaces for message processing model of a Spine-based application.
Types
Link copied to clipboard
public abstract class AbstractHandlerMethod<T, M extends Message, C extends MessageClass<M>, E extends MessageEnvelope<? extends Object, ? extends Signal<?, ?, ?>, ? extends Object>, R extends MessageClass<?>> implements HandlerMethod<T, C, E, R>
An abstract base for wrappers over methods handling messages.
Link copied to clipboard
The predicate for access modifiers of methods.
Link copied to clipboard
public final class AllowedParams<E extends MessageEnvelope<? extends Object, ? extends Object, ? extends Object>>
Specifies allowed combinations of parameters that a handler method may accept.
Link copied to clipboard
Allows to filter messages passed by a handler method by a value of the message field.
Link copied to clipboard
public interface CommandProducingMethod<T, C extends MessageClass<?>, E extends MessageEnvelope<? extends Object, ? extends Object, ? extends Object>> implements HandlerMethod<T, C, E, R>
A HandlerMethod which produces commands in response to a signal.
Link copied to clipboard
Provides information for dispatching a message to a handler method.
Link copied to clipboard
Link copied to clipboard
Indicates that more than one handling method for the same message class are present in the declaring class.
Link copied to clipboard
public interface EventProducingMethod<T extends EventProducer, C extends MessageClass<?>, E extends MessageEnvelope<? extends Object, ? extends Object, ? extends Object>> implements HandlerMethod<T, C, E, R>
A HandlerMethod which produces events in response to a signal.
Link copied to clipboard
An error thrown when one or more of the command accepting methods are marked
external
in the CommandHandlingClass.Link copied to clipboard
An error indicating that two message handlers have clashing ByField filtering signatures.
Link copied to clipboard
public final class HandlerMap<M extends MessageClass<?>, R extends MessageClass<?>, H extends HandlerMethod<? extends Object, M, ? extends Object, R>> implements Serializable
Provides mapping from a class of messages to methods which handle such messages.
Link copied to clipboard
public interface HandlerMethod<T, C extends MessageClass<?>, E extends MessageEnvelope<? extends Object, ? extends Object, ? extends Object>, R extends MessageClass<?>>
Describes a method that accepts a message and optionally its context.
Link copied to clipboard
An exception signifying that a handler method produced an unexpected result.
Link copied to clipboard
The criteria of method matching to a certain set of requirements, applied to the model message handlers.
Link copied to clipboard
The checker of a Method access level.
Link copied to clipboard
Provides information about parameters of a method.
Link copied to clipboard
public abstract class MethodSignature<H extends HandlerMethod<? extends Object, ? extends Object, E, ? extends Object>, E extends MessageEnvelope<? extends Object, ? extends Object, ? extends Object>>
Specification of a handler method signature.
Link copied to clipboard
Abstract base for classes providing additional information on a Java class such as classes of messages being handled by the methods exposed by the class.
Link copied to clipboard
A programming error of message processing definition.
Link copied to clipboard
public interface ParameterSpec<E extends MessageEnvelope<? extends Object, ? extends Object, ? extends Object>>
A specification of handler method parameters, specific for various
HandlerMethod
implementations.Link copied to clipboard
Specifies types of values a handler methods may return.
Link copied to clipboard
public interface SelectiveHandler<T, C extends MessageClass<?>, E extends MessageEnvelope<? extends Object, ? extends Object, ? extends Object>, R extends MessageClass<?>> implements HandlerMethod<T, C, E, R>
A handler method which accept only instances of messages that match the filtering conditions.
Link copied to clipboard
An error which signifies that the
external
attribute was misplaced on a handler method.Link copied to clipboard
The mismatch of a signature.
Link copied to clipboard
Thrown for handler method in case its wrapped method does not match method signature, set for the handler.
Link copied to clipboard
Tells if a passed class satisfies some particular criterion.
Link copied to clipboard
An exception thrown when a Query targets an unknown entity type.
Link copied to clipboard
public interface VoidMethod<T, C extends MessageClass<?>, E extends MessageEnvelope<? extends Object, ? extends Object, ? extends Object>> implements HandlerMethod<T, C, E, R>
A HandlerMethod which processes a message and produces no response.