[jboss-dev-forums] [Design of POJO Server] - Re: JACC: Policy Configuration needs to be linked with child

anil.saldhana@jboss.com do-not-reply at jboss.com
Mon Dec 11 12:31:24 EST 2006


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#3992844

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992844



More information about the jboss-dev-forums mailing list