mrstampy / Stampy

Java implementation of the STOMP 1.2 specification
67 stars 22 forks source link

Any builders? #1

Open maliqq opened 10 years ago

maliqq commented 10 years ago

To avoid boilerplate code in client/server configuration, something like:

AbstractStampyMessageGateway gw = new GatewayBuilder().
  withHost(3456).
  withHeartbeat(1000).
  add(listener1).
  add(listener2).
  build()

This pattern is also common for Netty internals.

mrstampy commented 10 years ago

Sorry, not in this release