Package net.engio.mbassy.subscription
Class SubscriptionFactory
- java.lang.Object
-
- net.engio.mbassy.subscription.SubscriptionFactory
-
public class SubscriptionFactory extends java.lang.ObjectThe 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 IMessageDispatcherbuildDispatcher(SubscriptionContext context, IHandlerInvocation invocation)protected IHandlerInvocationbuildInvocationForHandler(SubscriptionContext context)protected IHandlerInvocationcreateBaseHandlerInvocation(SubscriptionContext context)SubscriptioncreateSubscription(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
-
-