Its a similar discussion, and I'm not sure what the clone of the ClassLoaderMetaData is acomplishing. In the thread about unwrapping the bean fro the classloader element to add it as a dependency to the BeanMetaData is essentially what we are talking about here. One piece of metadata is introducing another dependency. In this case, to ServiceMetaData rather than a BeanMetaData.
The real issue is having deployers separated such that if we are running with a profile service that can override the metadata for a deployment with that from an admin tool (the open console), we don't overwrite that metadata. I can still see modifications being made to this for things like dependencies that are internal deployer details. These should not be showing up in the console as dependencies.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130590#4130590
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130590
If you have multiple deployers producing an aggregate metadata view the metadata will have to change. The 'users' view is a function of where you start at in the deployer chain. If I'm passing in authoritative metadata and expect 'metadata' deployers to be bypassed, that is something we would need better support for. Essentially an isMetaDataComplete(Class) call.
What's the bean example?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130586#4130586
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130586
The ServiceMetaData dependencies/attributes/annotations just store the most recent ones. So for example, if I have a service bean at the EAR level, then I would need to create dynamic dependencies to the individual web,ejb components within the jar. So deployers working with the war,ejb-jar deployments would want to create a dependency for these components on to the parent service bean (at the ear level for example).
I propose changes to be made such as:
| /**
| * Set the dependencies.
| *
| * @param dependencies the dependencies.
| */
| public void setDependencies(List<ServiceDependencyMetaData> dependencies)
| {
| if (dependencies == null)
| throw new IllegalArgumentException("Null dependencies");
| if(this.dependencies.size() == 0)
| this.dependencies = dependencies;
| else
| this.dependencies.addAll(dependencies);
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130577#4130577
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130577