You can publish a device handler to yourself anytime without having a device associated to it. But nothing will happen until there is a device that uses that device handler. That device can be a virtual device, though, many people use virtual switches, for example.
Overview of device handlers:
Virtual Device FAQ:
For detailed information, see the developer documentation by clicking on Developers at the top right of this site.