Package net.engio.mbassy.subscription
Class SubscriptionFactory
- java.lang.Object
-
- net.engio.mbassy.subscription.SubscriptionFactory
-
public class SubscriptionFactory extends java.lang.Object
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 Constructor Description SubscriptionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IMessageDispatcher
buildDispatcher(SubscriptionContext context, IHandlerInvocation invocation)
protected IHandlerInvocation
buildInvocationForHandler(SubscriptionContext context)
protected IHandlerInvocation
createBaseHandlerInvocation(SubscriptionContext context)
Subscription
createSubscription(BusRuntime runtime, MessageHandler handlerMetadata)
-
-
-
Method Detail
-
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
-
-