More Hivemind - Auto-wiring
My class was derived from JPanel, and the interface didnt declare setBorder() yet the Hivemind auto-wiring of the class on instantiation wanted to try to set that property. Similarly my interface didnt declare a setLayout() either, yet here I am faced with errors that say
SEVERE: Error at file:/C:/Devt/java/hivemind/apps/chronicle/classes/META-INF/hivemodule.xml, line 16: Unable to autowire property border of service com.caffeinatedbliss.chronicle.hiveApp.LoginGUI: There is no service point for interface javax.swing.border.Border.
and
SEVERE: Error at file:/C:/Devt/java/hivemind/apps/chronicle/classes/META-INF/hivemodule.xml, line 16: Unable to autowire property layout of service com.caffeinatedbliss.chronicle.hiveApp.LoginGUI: There is no service point for interface java.awt.LayoutManager.
What’s a person to do? It would be really nice if the auto-wiring had a switch to limit itself to the declared interface in question, as it appears that it’s being driven more by the object itself than the declared interface(s) that it exposes. That, or an explicit list of autowire properties might be nice. I suppose that is what the set-[object | property | configuration | service | resource] methods are for. I suppose it would have been nice to have the documentation explicitly note that auto-wiring the class would attempt to initialize members not declared in the public interface.
Oh, how it feels to live life on the bleeding edge!

