Decoupling filemon

Jul 18, 2010 at 9:31 AM
Edited Jul 18, 2010 at 10:43 AM


This is gonna be noob noise please bear with me. Here goes:

I have encapsulated filemon into a separate class. I then instantiate it FileMon fileMon=new FileMon(pid);

So far everything is well

The problem is when I want create an event that in MyFileMon class that notifies about disk IO. How do I reference the fileMon instance from my FileMonInterface?

Do any of you gyus have an example for this?