    001    package com.hammurapi.eventbus;
    002
    003    public class CompositeContext<E, P extends Comparable<P>, C, K, H extends EventBus.Handle<E,P,C>, S extends EventStore<E,P,C,H,S>> {
    004
    005            private EventDispatchContext<E,P,C,H,S> eventDispatchContext;
    006            private C handlerContext;
    007            private InferenceContext<E,P,C,K,H,S> inferenceContext;
    008
    009            public CompositeContext(
    010                            EventDispatchContext<E,P,C,H,S> eventDispatchContext,
    011                            C handlerContext,
    012                            InferenceContext<E,P,C,K,H,S> inferenceContext) {
    013                    super();
    014                    this.eventDispatchContext = eventDispatchContext;
    015                    this.handlerContext = handlerContext;
    016                    this.inferenceContext = inferenceContext;
    017            }
    018
    019            public EventDispatchContext<E,P,C,H,S> getEventDispatchContext() {
    020                    return eventDispatchContext;
    021            }
    022
    023            public C getHandlerContext() {
    024                    return handlerContext;
    025            }
    026
    027            public InferenceContext<E, P, C, K, H, S> getInferenceContext() {
    028                    return inferenceContext;
    029            }
    030    }