"Todd L. Miller" wrote:

>         Okay, so there's another of level indirection in here that I
> missed.  That is, Controller.getObject() may well return itself, but
> the Controller for a Device is the only object in the system which
> keeps a driver reference?)

I have absolutely no idea, as nobody else has either. We have not
discussed this issue. I am just certain that it will be considered
insane to allow applications raw access to hardware - it's just
completely opposite to all aims of Java's abstraction and inherent
security features. System components must have access to devices, but
they will be JOS specific, and could thus implement an interface for
informing them when a device has changed status. Something like this:


package jos.system.device;

public interface DeviceListener extends EventListener {

        public void deviceConnected(Device device);
        public void deviceDisconnected(Device device);
        public void deviceStatusChanged(Device device, String name,
                                                      Object newvalue);

}

-- 

      "Learn from others' mistakes, for you won't live long
          enough to make them all yourself..."
________________________________________________________________________
[EMAIL: mailto:[EMAIL PROTECTED]] [URL: http://www.outworld.org/people/al]
[TEL1: (30) +31 422392] [TEL2: (30) +31 428154] [CELL: (30) +937 110247]
[ADDRESS: 14 Argonafton St., Kalamaria, 551 31, Thessaloniki, Greece GR]
PLEASE DO NOT SEND ME ANY UNSOLICITED COMMERCIAL EMAIL [DSS: 0xDBEF8ECC]

_______________________________________________
Kernel maillist  -  [EMAIL PROTECTED]
http://jos.org/mailman/listinfo/kernel

Reply via email to