There's no way to check whether a collections is modifiable or otherwise.
But it should certainly be possible to turn this feature off,
with something like the requiresNew attribute on the collection below.
i.e. don't use the getter as the source of the collection to modify
| <?xml version="1.0" encoding="UTF-8"?>
|
| <deployment
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="urn:jboss:bean-deployer
bean-deployer_2_0.xsd"
| xmlns="urn:jboss:bean-deployer:2.0">
|
|
| <bean name = "Manager" class = "PluginManager">
| <property name = "bootstrapPlugins">
| <list elementClass = "java.lang.String"
requiresNew="true">
| <value>Test</value>
| </list>
| </property>
| </bean>
|
| </deployment>
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060405#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...