Package net.engio.mbassy.subscription
Class SubscriptionFactory
java.lang.Object
net.engio.mbassy.subscription.SubscriptionFactory
The subscription factory is used to create an empty subscription for specific message handler.
The message handler's configuration is evaluated and a corresponding subscription is built.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IMessageDispatcher
buildDispatcher
(SubscriptionContext context, IHandlerInvocation invocation) protected IHandlerInvocation
protected IHandlerInvocation
createSubscription
(BusRuntime runtime, MessageHandler handlerMetadata)
-
Constructor Details
-
SubscriptionFactory
public SubscriptionFactory()
-
-
Method Details
-
createSubscription
public Subscription createSubscription(BusRuntime runtime, MessageHandler handlerMetadata) throws MessageBusException - Throws:
MessageBusException
-
buildInvocationForHandler
protected IHandlerInvocation buildInvocationForHandler(SubscriptionContext context) throws MessageBusException - Throws:
MessageBusException
-
buildDispatcher
protected IMessageDispatcher buildDispatcher(SubscriptionContext context, IHandlerInvocation invocation) throws MessageBusException - Throws:
MessageBusException
-
createBaseHandlerInvocation
protected IHandlerInvocation createBaseHandlerInvocation(SubscriptionContext context) throws MessageBusException - Throws:
MessageBusException
-