This content has been marked as final.
Show 3 replies
-
1. Re: Adding metadata locations in real deployers
starksm64 Jan 23, 2009 12:18 PM (in response to alesj)I don't think the usage had come up yet. Relying on modifiable return values is not a good api.
-
2. Re: Adding metadata locations in real deployers
alesj Jan 23, 2009 2:25 PM (in response to alesj)"scott.stark@jboss.org" wrote:
I don't think the usage had come up yet.
It did now (see JBossPortal forum). :-)
And I already added the missing metadata locations methods - append, prepend, remove."scott.stark@jboss.org" wrote:
Relying on modifiable return values is not a good api.
You mean the append, prepend methods or direct collection ref returned?
I already changed getClassPath/MetaDataLocations to return unmodifiable collection.
I also deprecated VFSDeploymentUnit::setClassPath and added removeClassPath(VirtualFile... files) instead.
The setters should *not* exist on the user/client view. -
3. Re: Adding metadata locations in real deployers
starksm64 Jan 23, 2009 2:43 PM (in response to alesj)"alesj" wrote:
You mean the append, prepend methods or direct collection ref returned?
Direct collection ref return.