Creating the TelnetServerInterface Bean

You designed the TelnetServer bean as an invisible runtime bean. It's a flexible bean that can be used in nearly any application that needs a Telnet server. You'll test the TelnetServer bean by wiring it up with a simple interface that displays the messages held by the TelnetServer bean's message and serviceMessage properties.

Recall that TelnetServer bean's message property holds messages that originate in the TelnetServer bean itself. Its serviceMessage property, in contrast, holds messages received from Telnet clients. Also recall that both properties are bound, therefore, they send the PropertyChangeEvent objects each time they're set to a new value. Any object that you want to get the contents of ...

Get JavaBeans Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.