Attachments are metadata associated with a deployment unit. See the http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5DeploymentFramework org.jboss.deployers.plugins.deployers.helpers.AbstractParsingDeployer for an example.
Well I looked more into the code , have checked the testsuite also .
I can see
1) predeterminedManagedObjects Attachment
2) transientAttachments Attachment
3) transientManagedObjects Attachment
types present in the AbstractDeploymentContext . What does these types represent ?
Attachments are metadata associated with a deployment unit
Where do you specify this metadata , is this what is specified in the deploymentdescriptor ?