Add type a class assumes a single instance of that type. This is simply a convience method
for addAttachment(expectedType.getName(), T attachment, Class expectedType). If there are
multiple instance of a type you would need different names.
The ServiceMetaData example does not apply. Each ServiceMetaData instance is associated
with a component deployment, a type of DeploymentUnit that has no children. DeploymentUnit
component is structurally related to the owning deployment unit (a ServiceDeployment for a
ServiceMetaData), and each service is a child component deployment unit with a single
ServiceMetaData.
I'll look to add the getParent today.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992859#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...