#145 ✓closed
Ben Hood

Add InboundEndpointManager

Reported by Ben Hood | October 28th, 2010 @ 03:38 PM | in 0.9.3

The Configuration frontend should fire an event to (to be created) InboundEndpointManager for every CRUD operation on an Endpoint. The manager is responsible for firing up non-global non-static endpoints on demand (e.g. per-Participant queues in an AMQP scenario). The factory is responsible for knowing whether an endpoint receiver already exists for any given URL. Here are some design traits for this:

trait InboundEndpointFactory {
  def canHandleInboundEndpoint(url:String, contentType:String)
  def ensureEndpointReceiver(e:Endpoint)
}
class InboundEndpointManager {
  def registerFactory(f:InboundEndpointFactory) = ()
  def start {
    endpoints.foreach(e => {
      factories.filter(f => f.canHandleInboundEndpoint(e.inboundUrl, e.contentType)).foreach(f => f.ensureInboundEndpoint(e))
    })
  }
}

Note that this is a pre-requisite for #143.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A Real Time Differencing Tool.

Shared Ticket Bins

People watching this ticket

Referenced by

Pages