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
public final class AccessModifier implements Predicate<T>
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
public final class ArgumentFilter implements Predicate<T>
Allows to filter messages passed by a handler method by a value of the message field.
Link copied to clipboard
public interface Attribute<V>
Contains a value of an annotation attribute.
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
public final class DispatchKey
Provides information for dispatching a message to a handler method.
Link copied to clipboard
public final class DuplicateCommandHandlerError extends ModelError
An error thrown on attempt to add a class which declares a method that handles a command which is already handled by a class already added to the Model.
Link copied to clipboard
public final class DuplicateHandlerMethodError extends ModelError
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
public final class HandlerFieldFilterClashError extends ModelError
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
public final class IllegalOutcomeException extends RuntimeException
An exception signifying that a handler method produced an unexpected result.
Link copied to clipboard
public enum MatchCriterion
The criteria of method matching to a certain set of requirements, applied to the model message handlers.
Link copied to clipboard
public final class MethodAccessChecker
The checker of a Method access level.
Link copied to clipboard
public final class MethodParams
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
public class Model
Stores information of message handling classes.
Link copied to clipboard
public abstract class ModelClass<T>
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
public class ModelError extends Error
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
public final class ReturnTypes
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
public final class SignalOriginMismatchError extends ModelError
An error which signifies that the external attribute was misplaced on a handler method.
Link copied to clipboard
public final class SignatureMismatch
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
public interface TypeMatcher implements Predicate<T>
Tells if a passed class satisfies some particular criterion.
Link copied to clipboard
public final class UnknownEntityTypeException extends RuntimeException
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.