Hi all,

I have written a standard MBean which watches a directory on the 
filesystem.
If a file is dropped in this directory a different class (Handler) should 
be created to handle the file.

I want to be able to configure which handler a particular directory 
watcher MBean uses.

Therefore I thought it might be a good idea to make the Handler class a 
MBean aswel.

There are about 20 different handlers but they all implement the interface 
Handler.java:

public interface Handler {
        public void handle(File file);
}

I have written all the code... But don't know where to go from here....
How can I instantiate the right Handler and call its 'handle()' method?

All ideas are more then welcome,

Thanks,

Harm de Laat
Informatiefabriek



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to