Bill,
thanks. I tried 2006-9-14 (the timestamp of the release on sf and inside the archive) but the line numbers for jbosssx (the starting point for me) just don't match with the ones from the code's debug information.
In fact, I'm even confused about which repository is the correct one. The version I mentioned above is from CVS. SVN also has a JBossAuthorizationManager in /repos/jbossas/projects/security et al. However, those versions lack the updateCache method.
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992861#3992861
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992861
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#3992859
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992859
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
Ryan, I have vague idea of what had to be done. Instead of doing something and then waiting for people to complain I prefer to do the asking first. I hope you don't have problem with that.
Now back to the topic...
1) The original tool creates a database of serialVersionUIDs for the classes found in the java "javax" package . Do we need this for JBossCache ?
2) Are there any known serialization issues between the different
JBossCache versions ? If you know of such issues, please, let me
know so I can blacklist the classes in question.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992816#3992816
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992816