[Design the new POJO MicroContainer] - Re: Need a NamedObject SimpleMetaType
by scott.stark@jboss.org
Thinking about the type issue more, I originally was writing tests that had the security-domain property be a Name type as that is how the code is still written. Typically one would have the property be the dependent interface type that one would use, but the security domain bean is not used directly by jca. There is an indirection because jaas is used with a configuration name, and that is what really needs to be matched up between the jca security-domain property and some security domain bean implementation. In this case the Name type is correct in that its describing a dependency on another component, but is too weak in terms of validating what that component provides. What one wants to validate is that the security domain bean provides a jaas login configuration for the indicated name. Don't know how to validate that at this point.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070188#4070188
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070188
16 years, 9 months
[Design the new POJO MicroContainer] - Re: Need a NamedObject SimpleMetaType
by scott.stark@jboss.org
The name of the ManagedObject is generally not useful for referencing as its a DeploymentUnit attachment name. This is not usable for a datasource referencing a security domain whose deployment type and attachment type won't be known.
You don't think the Name type belongs here, the ManagedObjectRegistry, or both?
I don't expect that there will be a bus in the managed project, just the spi to allow references to be resolved.
Its also not sufficient to just have the name in the registry. I also need to be able to validate that the source the name is bound to supports the expected property type. I guess this requires the use of the GenericMetaType on the property and source to check that the expected type exists. However, if the source supports an extension of an interface the property wants, this cannot be determined from the classname comparision GenericMetaType supports. The source would have to declare a GenericMetaType for each interface.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070169#4070169
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070169
16 years, 9 months