How to create a component in Whack?


I am looking to create an external component using the Whack library, which is to be connected to the OpenFire server. I tried looking at the Component class but because it is an interface, without a constructor, I do not know how I should start doing this. Any pointers will be really appreciated. Thanks!

To add to the question, I am just trying to use the component to process the messages between the server and the clients. For example, any Jabber client (such as ichat, adium) connects to the component to send a message, and the component sends a customised response based on that input. Hope that clarifies the problem.