Deployment Unit:
| Object addAttachment(String name, Object attachment);
| <T> T addAttachment(String name, T attachment, Class<T> expectedType);
| <T> T addAttachment(Class<T> type, T attachment);
|
Minor issue: the addition of attachments with reference to Class and the attachment itself
is not consistent across the api (mainly the second and third add attachments)
* I am assuming that a deployment can have multiple service beans.
* Now if a deployer wants to remove an attachment in its undeploy method, it is better to
have added the attachment with a name??
| unit.addAttachment("somename",bean, ServiceMetaData.class);
| unit.removeAttachment("somename", ServiceMetaData.class);
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992844#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...