from the depth of the deployers, I am actually thinking of something slightly different that might help you guys. I use the new org.jboss.system.Registry to lookup native MBean interfaces in the server, it an intuitive way to hook up components in the run-time. Right now I lookup by ObjectName, meaning that you need the object name in the second component to be able to lookup the first one. But if you do typed programming (unlike the detyped invocation chain of JBoss 3.0 microkernel, I am talking of "sub-parts" that are linked through type) the I am also thinking that we could support (easily) the lookup by class, This way you don't even have to specify the ObjectName in the components since you know the type (by definition, we are doing typed programming here). Simple.
a la JINI really. Meaning from your code you say "dude I need something of the class "Class" and I return the first pointer I have to it from the system registry. This is useful in many places in the deployers where we then don't have to specify the ObjectName. Its' 7 lines of code (really) so unless someone has a fundamental religious problem with typed lookups I will add this in. Returns an object you need to cast it. <ping/> marcf ______________________________________________________________________ View this jboss-dev thread in the online forums: http://jboss.org/forums/thread.jsp?forum=66&thread=6254 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
